about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-08-06 13:39:47 +0200
committerRalf Jung <post@ralfj.de>2018-08-06 13:39:47 +0200
commit819645bfc461af9c02aa60a3385b008f490ed164 (patch)
tree19dfb36ac15e2b0fa53ddada18257aa3c4e807c1 /src/libstd
parentd3d31105e99f5265880d0f010436ed5c6baab034 (diff)
downloadrust-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.rs2
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() }