This repository was archived by the owner on May 28, 2025. It is now read-only.
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> {}
192192 points can cause deadlocks, delays, \
193193 and cause Futures to not implement `Send`"]
194194#[ stable( feature = "rust1" , since = "1.0.0" ) ]
195+ #[ clippy:: has_significant_drop]
195196pub struct MutexGuard < ' a , T : ?Sized + ' a > {
196197 lock : & ' a Mutex < T > ,
197198 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> {}
9999 points can cause deadlocks, delays, \
100100 and cause Futures to not implement `Send`"]
101101#[ stable( feature = "rust1" , since = "1.0.0" ) ]
102+ #[ clippy:: has_significant_drop]
102103pub struct RwLockReadGuard < ' a , T : ?Sized + ' a > {
103104 lock : & ' a RwLock < T > ,
104105}
@@ -122,6 +123,7 @@ unsafe impl<T: ?Sized + Sync> Sync for RwLockReadGuard<'_, T> {}
122123 points can cause deadlocks, delays, \
123124 and cause Future's to not implement `Send`"]
124125#[ stable( feature = "rust1" , since = "1.0.0" ) ]
126+ #[ clippy:: has_significant_drop]
125127pub struct RwLockWriteGuard < ' a , T : ?Sized + ' a > {
126128 lock : & ' a RwLock < T > ,
127129 poison : poison:: Guard ,
You can’t perform that action at this time.
0 commit comments