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> {}
193
193
and cause Futures to not implement `Send`"]
194
194
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
195
195
#[ clippy:: has_significant_drop]
196
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "MutexGuard" ) ]
196
197
pub struct MutexGuard < ' a , T : ?Sized + ' a > {
197
198
lock : & ' a Mutex < T > ,
198
199
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> {}
100
100
and cause Futures to not implement `Send`"]
101
101
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
102
102
#[ clippy:: has_significant_drop]
103
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "RwLockReadGuard" ) ]
103
104
pub struct RwLockReadGuard < ' a , T : ?Sized + ' a > {
104
105
lock : & ' a RwLock < T > ,
105
106
}
@@ -124,6 +125,7 @@ unsafe impl<T: ?Sized + Sync> Sync for RwLockReadGuard<'_, T> {}
124
125
and cause Future's to not implement `Send`"]
125
126
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
126
127
#[ clippy:: has_significant_drop]
128
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "RwLockWriteGuard" ) ]
127
129
pub struct RwLockWriteGuard < ' a , T : ?Sized + ' a > {
128
130
lock : & ' a RwLock < T > ,
129
131
poison : poison:: Guard ,
You can’t perform that action at this time.
0 commit comments