Rollup merge of #125527 - programmerjake:patch-2, r=workingjubilee · model-checking/verify-rust-std@c11b36a (original) (raw)

Original file line number Diff line number Diff line change
@@ -116,6 +116,9 @@ pub struct ReentrantLockGuard<'a, T: ?Sized + 'a> {
116 116 #[unstable(feature = "reentrant_lock", issue = "121440")]
117 117 impl<T: ?Sized> !Send for ReentrantLockGuard<'_, T> {}
118 118
119 +#[unstable(feature = "reentrant_lock", issue = "121440")]
120 +unsafe impl<T: ?Sized + Sync> Sync for ReentrantLockGuard<'_, T> {}
121 +
119 122 #[unstable(feature = "reentrant_lock", issue = "121440")]
120 123 impl<T> ReentrantLock<T> {
121 124 /// Creates a new re-entrant lock in an unlocked state ready for use.