Skip to content

Commit 819645b

Browse files
committed
I think we have to strengthen Mutex::init UB
1 parent d3d3110 commit 819645b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys_common/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Mutex {
3232
/// Prepare the mutex for use.
3333
///
3434
/// This should be called once the mutex is at a stable memory address.
35-
/// It must not be called concurrently with any other operation.
35+
/// Behavior is undefined unless this is called before any other operation.
3636
#[inline]
3737
pub unsafe fn init(&mut self) { self.0.init() }
3838

0 commit comments

Comments
 (0)