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 @@ -221,7 +221,7 @@ unsafe impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T> {}
221
221
/// of scope), the lock will be unlocked.
222
222
///
223
223
/// The main difference between `MappedMutexGuard` and [`MutexGuard`] is that the
224
- /// former cannot be used with [`CondVar `], since that
224
+ /// former cannot be used with [`Condvar `], since that
225
225
/// could introduce soundness issues if the locked object is modified by another
226
226
/// thread while the `Mutex` is unlocked.
227
227
///
@@ -233,7 +233,7 @@ unsafe impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T> {}
233
233
///
234
234
/// [`map`]: MutexGuard::map
235
235
/// [`try_map`]: MutexGuard::try_map
236
- /// [`CondVar `]: crate::sync::CondVar
236
+ /// [`Condvar `]: crate::sync::Condvar
237
237
#[ must_use = "if unused the Mutex will immediately unlock" ]
238
238
#[ must_not_suspend = "holding a MappedMutexGuard across suspend \
239
239
points can cause deadlocks, delays, \
You can’t perform that action at this time.
0 commit comments