]> git.lizzy.rs Git - rust.git/commitdiff
Reword E0492
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 30 Nov 2015 09:29:35 +0000 (10:29 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 30 Nov 2015 10:13:37 +0000 (11:13 +0100)
src/librustc/diagnostics.rs

index bdfdc7f47860d699c3825a0bee17c46a01dd1bb6..6e94ac83d555e963ffaf14c1ac356ca800d45e87 100644 (file)
@@ -1950,9 +1950,9 @@ struct C { a: Cell<usize> }
 const F: &'static C = &D; // error
 ```
 
-This is because cell types internally use `UnsafeCell`, which isn't `Sync`.
-These aren't thread safe, and thus can't be placed in statics. In this case,
-`StaticMutex` would work just fine, but it isn't stable yet:
+This is because cell types do operations that are not thread-safe. Due to this,
+they don't implement Sync and thus can't be placed in statics. In this
+case, `StaticMutex` would work just fine, but it isn't stable yet:
 https://doc.rust-lang.org/nightly/std/sync/struct.StaticMutex.html
 
 However, if you still wish to use these types, you can achieve this by an unsafe