diff options
| author | Ralf Jung <post@ralfj.de> | 2018-08-06 13:39:47 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-08-06 13:39:47 +0200 |
| commit | 819645bfc461af9c02aa60a3385b008f490ed164 (patch) | |
| tree | 19dfb36ac15e2b0fa53ddada18257aa3c4e807c1 /src/libstd | |
| parent | d3d31105e99f5265880d0f010436ed5c6baab034 (diff) | |
| download | rust-819645bfc461af9c02aa60a3385b008f490ed164.tar.gz rust-819645bfc461af9c02aa60a3385b008f490ed164.zip | |
I think we have to strengthen Mutex::init UB
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys_common/mutex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys_common/mutex.rs b/src/libstd/sys_common/mutex.rs index 77a33e4c6be..a4efe4d128e 100644 --- a/src/libstd/sys_common/mutex.rs +++ b/src/libstd/sys_common/mutex.rs @@ -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() } |
