diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-12-22 17:15:51 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-12-26 17:26:33 +0100 |
| commit | 88186934960dae4f616df815eb25205c2713f503 (patch) | |
| tree | 10568b070d36a957f6a6aacf726d3dae05f73354 /src/libstd/thread_local | |
| parent | 7df17a2868004597bff61348060f423ad2384e04 (diff) | |
Relax `Arc` bounds don't require Sync+Send
Besides the above making sense, it'll also allow us to make `RacyCell` private and use UnsafeCell instead.
Diffstat (limited to 'src/libstd/thread_local')
| -rw-r--r-- | src/libstd/thread_local/scoped.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/thread_local/scoped.rs b/src/libstd/thread_local/scoped.rs index 3ea051b16f2..756c86c2115 100644 --- a/src/libstd/thread_local/scoped.rs +++ b/src/libstd/thread_local/scoped.rs @@ -196,10 +196,10 @@ impl<T> Key<T> { #[cfg(not(any(windows, target_os = "android", target_os = "ios")))] mod imp { - use std::comm::RacyCell; + use std::cell::UnsafeCell; #[doc(hidden)] - pub struct KeyInner<T> { pub inner: RacyCell<*mut T> } + pub struct KeyInner<T> { pub inner: UnsafeCell<*mut T> } unsafe impl<T> ::kinds::Sync for KeyInner<T> { } |
