about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-12 10:49:39 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-18 10:51:31 -0700
commitec333380e03eb1fb94c4938db888d5bed40b8fd6 (patch)
treed61a76778a5f1b0bb2de0f754e033f09234e70da /src/libstd/thread
parent913c2273eba32c7a33e068a5ac68007d7f8419d1 (diff)
downloadrust-ec333380e03eb1fb94c4938db888d5bed40b8fd6.tar.gz
rust-ec333380e03eb1fb94c4938db888d5bed40b8fd6.zip
Fix libstd tests
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/local.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 2c4b716cc6e..60563340d10 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -405,7 +405,6 @@ mod imp {
 mod imp {
     use prelude::v1::*;
 
-    use alloc::boxed;
     use cell::{Cell, UnsafeCell};
     use marker;
     use ptr;
@@ -447,7 +446,7 @@ mod imp {
                 key: self,
                 value: UnsafeCell::new(None),
             };
-            let ptr = boxed::into_raw(ptr);
+            let ptr = Box::into_raw(ptr);
             self.os.set(ptr as *mut u8);
             Some(&(*ptr).value)
         }