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