diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2017-05-10 13:13:42 -0400 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2017-05-20 19:27:30 -0400 |
| commit | e847d46bcb01c71e18610eeb30db6f2b6a7f3214 (patch) | |
| tree | 3a77f950dc25d6087f689e6ba5163c8269bbc6b9 /src/libstd/sys/unix | |
| parent | 892df1db60c3c81c57899ef3712b43f63d971b25 (diff) | |
| download | rust-e847d46bcb01c71e18610eeb30db6f2b6a7f3214.tar.gz rust-e847d46bcb01c71e18610eeb30db6f2b6a7f3214.zip | |
migrate everything to using mem::needs_drop
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/fast_thread_local.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/fast_thread_local.rs b/src/libstd/sys/unix/fast_thread_local.rs index 07d76a93dd1..6b3973de84c 100644 --- a/src/libstd/sys/unix/fast_thread_local.rs +++ b/src/libstd/sys/unix/fast_thread_local.rs @@ -13,7 +13,7 @@ use cell::{Cell, UnsafeCell}; use fmt; -use intrinsics; +use mem; use ptr; pub struct Key<T> { @@ -44,7 +44,7 @@ impl<T> Key<T> { pub fn get(&'static self) -> Option<&'static UnsafeCell<Option<T>>> { unsafe { - if intrinsics::needs_drop::<T>() && self.dtor_running.get() { + if mem::needs_drop::<T>() && self.dtor_running.get() { return None } self.register_dtor(); @@ -53,7 +53,7 @@ impl<T> Key<T> { } unsafe fn register_dtor(&self) { - if !intrinsics::needs_drop::<T>() || self.dtor_registered.get() { + if !mem::needs_drop::<T>() || self.dtor_registered.get() { return } |
