We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d95e6 commit 1099af7Copy full SHA for 1099af7
src/librustc/diagnostics.rs
@@ -1950,9 +1950,9 @@ const E: &'static Cell<usize> = &D.a; // error
1950
const F: &'static C = &D; // error
1951
```
1952
1953
-This is because cell types internally use `UnsafeCell`, which isn't `Sync`.
1954
-These aren't thread safe, and thus can't be placed in statics. In this case,
1955
-`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:
1956
https://doc.rust-lang.org/nightly/std/sync/struct.StaticMutex.html
1957
1958
However, if you still wish to use these types, you can achieve this by an unsafe
0 commit comments