diff options
Diffstat (limited to 'src/libstd/thread_local')
| -rw-r--r-- | src/libstd/thread_local/scoped.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/thread_local/scoped.rs b/src/libstd/thread_local/scoped.rs index d7ea163cc80..3ea051b16f2 100644 --- a/src/libstd/thread_local/scoped.rs +++ b/src/libstd/thread_local/scoped.rs @@ -196,11 +196,10 @@ impl<T> Key<T> { #[cfg(not(any(windows, target_os = "android", target_os = "ios")))] mod imp { - use std::cell::UnsafeCell; + use std::comm::RacyCell; - // SNAP c9f6d69 switch to `Cell` #[doc(hidden)] - pub struct KeyInner<T> { pub inner: UnsafeCell<*mut T> } + pub struct KeyInner<T> { pub inner: RacyCell<*mut T> } unsafe impl<T> ::kinds::Sync for KeyInner<T> { } |
