File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -165,13 +165,17 @@ pub use core::sync::Exclusive;
165
165
pub use self :: barrier:: { Barrier , BarrierWaitResult } ;
166
166
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
167
167
pub use self :: condvar:: { Condvar , WaitTimeoutResult } ;
168
+ #[ unstable( feature = "mapped_lock_guards" , issue = "117108" ) ]
169
+ pub use self :: mutex:: MappedMutexGuard ;
168
170
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
169
171
pub use self :: mutex:: { Mutex , MutexGuard } ;
170
172
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
171
173
#[ allow( deprecated) ]
172
174
pub use self :: once:: { Once , OnceState , ONCE_INIT } ;
173
175
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
174
176
pub use self :: poison:: { LockResult , PoisonError , TryLockError , TryLockResult } ;
177
+ #[ unstable( feature = "mapped_lock_guards" , issue = "117108" ) ]
178
+ pub use self :: rwlock:: { MappedRwLockReadGuard , MappedRwLockWriteGuard } ;
175
179
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
176
180
pub use self :: rwlock:: { RwLock , RwLockReadGuard , RwLockWriteGuard } ;
177
181
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ unsafe impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T> {}
225
225
/// of scope), the lock will be unlocked.
226
226
///
227
227
/// The main difference between `MappedMutexGuard` and [`MutexGuard`] is that the
228
- /// former cannot be used with [`CondVar `], since that
228
+ /// former cannot be used with [`Condvar `], since that
229
229
/// could introduce soundness issues if the locked object is modified by another
230
230
/// thread while the `Mutex` is unlocked.
231
231
///
@@ -237,7 +237,7 @@ unsafe impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T> {}
237
237
///
238
238
/// [`map`]: MutexGuard::map
239
239
/// [`try_map`]: MutexGuard::try_map
240
- /// [`CondVar `]: crate::sync::CondVar
240
+ /// [`Condvar `]: crate::sync::Condvar
241
241
#[ must_use = "if unused the Mutex will immediately unlock" ]
242
242
#[ must_not_suspend = "holding a MappedMutexGuard across suspend \
243
243
points can cause deadlocks, delays, \
You can’t perform that action at this time.
0 commit comments