We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb2097 commit 0162f29Copy full SHA for 0162f29
library/std/src/sync/poison/rwlock.rs
@@ -608,7 +608,9 @@ impl<T: ?Sized> RwLock<T> {
608
/// Returns a mutable reference to the underlying data.
609
///
610
/// Since this call borrows the `RwLock` mutably, no actual locking needs to
611
- /// take place -- the mutable borrow statically guarantees no locks exist.
+ /// take place -- the mutable borrow statically guarantees no new locks can be acquired
612
+ /// while this reference exists. Note that this method does not clear any previously abandoned locks
613
+ /// (e.g., via [`forget()`] on a [`RwLockReadGuard`] or [`RwLockWriteGuard`]).
614
615
/// # Errors
616
0 commit comments