about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-30 10:29:35 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-30 11:13:37 +0100
commit1099af732dd25be44f4e3da35d0f5b8e40cdcb7e (patch)
tree212116e578e7a37dcabf5f976db379648a49a835 /src
parent52d95e6448493366ab1c171c3217de9c7bb40a70 (diff)
downloadrust-1099af732dd25be44f4e3da35d0f5b8e40cdcb7e.tar.gz
rust-1099af732dd25be44f4e3da35d0f5b8e40cdcb7e.zip
Reword E0492
Diffstat (limited to 'src')
-rw-r--r--src/librustc/diagnostics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs
index bdfdc7f4786..6e94ac83d55 100644
--- a/src/librustc/diagnostics.rs
+++ b/src/librustc/diagnostics.rs
@@ -1950,9 +1950,9 @@ const E: &'static Cell<usize> = &D.a; // error
 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