File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 13
13
//! depend on the primitive. See [#Overview] below.
14
14
//!
15
15
//! For the alternative implementations that do not employ poisoning,
16
- //! see `std::sync::nonpoisoning`.
16
+ //! see [`std::sync::nonpoison`].
17
+ //!
18
+ //! [`std::sync::nonpoison`]: crate::sync::nonpoison
17
19
//!
18
20
//! # Overview
19
21
//!
56
58
//! while it is locked exclusively (write mode). If a panic occurs in any reader,
57
59
//! then the lock will not be poisoned.
58
60
59
- // FIXME(sync_nonpoison) add links to sync::nonpoison to the doc comment above.
60
-
61
61
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
62
62
pub use self :: condvar:: { Condvar , WaitTimeoutResult } ;
63
63
#[ unstable( feature = "mapped_lock_guards" , issue = "117108" ) ]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use crate::time::{Duration, Instant};
13
13
#[ stable( feature = "wait_timeout" , since = "1.5.0" ) ]
14
14
pub struct WaitTimeoutResult ( bool ) ;
15
15
16
- // FIXME(sync_nonpoison ): `WaitTimeoutResult` is actually poisoning-agnostic, it seems.
16
+ // FIXME(nonpoison_condvar ): `WaitTimeoutResult` is actually poisoning-agnostic, it seems.
17
17
// Should we take advantage of this fact?
18
18
impl WaitTimeoutResult {
19
19
/// Returns `true` if the wait was known to have timed out.
Original file line number Diff line number Diff line change @@ -650,7 +650,7 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Mutex<T> {
650
650
d. field ( "data" , & & * * err. get_ref ( ) ) ;
651
651
}
652
652
Err ( TryLockError :: WouldBlock ) => {
653
- d. field ( "data" , & format_args ! ( "<locked>" ) ) ;
653
+ d. field ( "data" , & "<locked>" ) ;
654
654
}
655
655
}
656
656
d. field ( "poisoned" , & self . poison . get ( ) ) ;
You can’t perform that action at this time.
0 commit comments