File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ unsafe impl<T: ?Sized + Send> Sync for Mutex<T> {}
193193 and cause Futures to not implement `Send`"]
194194#[ stable( feature = "rust1" , since = "1.0.0" ) ]
195195#[ clippy:: has_significant_drop]
196+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "MutexGuard" ) ]
196197pub struct MutexGuard < ' a , T : ?Sized + ' a > {
197198 lock : & ' a Mutex < T > ,
198199 poison : poison:: Guard ,
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ unsafe impl<T: ?Sized + Send + Sync> Sync for RwLock<T> {}
100100 and cause Futures to not implement `Send`"]
101101#[ stable( feature = "rust1" , since = "1.0.0" ) ]
102102#[ clippy:: has_significant_drop]
103+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "RwLockReadGuard" ) ]
103104pub struct RwLockReadGuard < ' a , T : ?Sized + ' a > {
104105 lock : & ' a RwLock < T > ,
105106}
@@ -124,6 +125,7 @@ unsafe impl<T: ?Sized + Sync> Sync for RwLockReadGuard<'_, T> {}
124125 and cause Future's to not implement `Send`"]
125126#[ stable( feature = "rust1" , since = "1.0.0" ) ]
126127#[ clippy:: has_significant_drop]
128+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "RwLockWriteGuard" ) ]
127129pub struct RwLockWriteGuard < ' a , T : ?Sized + ' a > {
128130 lock : & ' a RwLock < T > ,
129131 poison : poison:: Guard ,
You can’t perform that action at this time.
0 commit comments