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

@ -28,7 +28,6 @@
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(const_fn)]
#![feature(fs)]
#![feature(iter_cmp)]
#![feature(iter_arith)]
#![feature(libc)]

View File

@ -75,6 +75,7 @@ This API is completely unstable and subject to change.
#![allow(non_camel_case_types)]
#![feature(append)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(drain)]

View File

@ -106,6 +106,7 @@
#![feature(alloc)]
#![feature(allow_internal_unstable)]
#![feature(associated_consts)]
#![feature(borrow_state)]
#![feature(box_raw)]
#![feature(box_syntax)]
#![feature(char_internals)]
@ -130,7 +131,6 @@
#![feature(slice_concat_ext)]
#![feature(slice_position_elem)]
#![feature(no_std)]
#![feature(num_bits_bytes)]
#![feature(oom)]
#![feature(optin_builtin_traits)]
#![feature(rand)]
@ -148,6 +148,9 @@
#![feature(vec_push_all)]
#![feature(wrapping)]
#![feature(zero_one)]
#![cfg_attr(all(unix, not(target_os = "macos"), not(target_os = "ios")),
feature(num_bits_bytes))]
#![cfg_attr(windows, feature(str_utf16))]
#![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))]
#![cfg_attr(test, feature(test, rustc_private, float_consts))]

View File

@ -12,7 +12,6 @@ use prelude::v1::*;
use libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};
use boxed;
use ptr;
use rt;
use sys_common::mutex::Mutex;
@ -143,7 +142,7 @@ unsafe fn init_dtors() {
DTOR_LOCK.unlock();
});
if res.is_ok() {
DTORS = boxed::into_raw(dtors);
DTORS = Box::into_raw(dtors);
} else {
DTORS = 1 as *mut _;
}

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

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-expanded FIXME #23616
#![feature(libc, std_misc)]
extern crate libc;

View File

@ -10,15 +10,15 @@
// pretty-expanded FIXME #23616
#![allow(unused_mut)]
#![feature(core)]
#![feature(collections)]
#![feature(step_by)]
#![allow(warnings)]
#![feature(iter_empty)]
#![feature(iter_once)]
#![feature(iter_unfold)]
#![feature(range_inclusive)]
#![feature(step_by)]
#![feature(str_escape)]
use std::iter::{empty, once, range_inclusive, repeat, Unfold};
>>>>>>> Fallout in tests and docs from feature renamings
fn is_sync<T>(_: T) where T: Sync {}
fn is_send<T>(_: T) where T: Send {}

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-expanded FIXME #23616
#![feature(std_misc)]
pub type HANDLE = u32;