Fix libstd tests

This commit is contained in:
Alex Crichton
2015-06-12 10:49:39 -07:00
parent 913c2273eb
commit ec333380e0
8 changed files with 12 additions and 15 deletions

View File

@@ -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)
}