Skip to content

Commit

Permalink
I think we have to strengthen Mutex::init UB
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 6, 2018
1 parent d3d3110 commit 819645b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys_common/mutex.rs
Expand Up @@ -32,7 +32,7 @@ impl Mutex {
/// Prepare the mutex for use.
///
/// This should be called once the mutex is at a stable memory address.
/// It must not be called concurrently with any other operation.
/// Behavior is undefined unless this is called before any other operation.
#[inline]
pub unsafe fn init(&mut self) { self.0.init() }

Expand Down

0 comments on commit 819645b

Please sign in to comment.