1
Fork 0

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_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(const_fn)] #![feature(const_fn)]
#![feature(fs)]
#![feature(iter_cmp)] #![feature(iter_cmp)]
#![feature(iter_arith)] #![feature(iter_arith)]
#![feature(libc)] #![feature(libc)]

View file

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

View file

@ -106,6 +106,7 @@
#![feature(alloc)] #![feature(alloc)]
#![feature(allow_internal_unstable)] #![feature(allow_internal_unstable)]
#![feature(associated_consts)] #![feature(associated_consts)]
#![feature(borrow_state)]
#![feature(box_raw)] #![feature(box_raw)]
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(char_internals)] #![feature(char_internals)]
@ -130,7 +131,6 @@
#![feature(slice_concat_ext)] #![feature(slice_concat_ext)]
#![feature(slice_position_elem)] #![feature(slice_position_elem)]
#![feature(no_std)] #![feature(no_std)]
#![feature(num_bits_bytes)]
#![feature(oom)] #![feature(oom)]
#![feature(optin_builtin_traits)] #![feature(optin_builtin_traits)]
#![feature(rand)] #![feature(rand)]
@ -148,6 +148,9 @@
#![feature(vec_push_all)] #![feature(vec_push_all)]
#![feature(wrapping)] #![feature(wrapping)]
#![feature(zero_one)] #![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(float_from_str_radix, range_inclusive, float_extras))]
#![cfg_attr(test, feature(test, rustc_private, float_consts))] #![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 libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};
use boxed;
use ptr; use ptr;
use rt; use rt;
use sys_common::mutex::Mutex; use sys_common::mutex::Mutex;
@ -143,7 +142,7 @@ unsafe fn init_dtors() {
DTOR_LOCK.unlock(); DTOR_LOCK.unlock();
}); });
if res.is_ok() { if res.is_ok() {
DTORS = boxed::into_raw(dtors); DTORS = Box::into_raw(dtors);
} else { } else {
DTORS = 1 as *mut _; DTORS = 1 as *mut _;
} }

View file

@ -405,7 +405,6 @@ mod imp {
mod imp { mod imp {
use prelude::v1::*; use prelude::v1::*;
use alloc::boxed;
use cell::{Cell, UnsafeCell}; use cell::{Cell, UnsafeCell};
use marker; use marker;
use ptr; use ptr;
@ -447,7 +446,7 @@ mod imp {
key: self, key: self,
value: UnsafeCell::new(None), value: UnsafeCell::new(None),
}; };
let ptr = boxed::into_raw(ptr); let ptr = Box::into_raw(ptr);
self.os.set(ptr as *mut u8); self.os.set(ptr as *mut u8);
Some(&(*ptr).value) Some(&(*ptr).value)
} }

View file

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

View file

@ -10,15 +10,15 @@
// pretty-expanded FIXME #23616 // pretty-expanded FIXME #23616
#![allow(unused_mut)] #![allow(warnings)]
#![feature(core)]
#![feature(collections)]
#![feature(step_by)]
#![feature(iter_empty)] #![feature(iter_empty)]
#![feature(iter_once)] #![feature(iter_once)]
#![feature(iter_unfold)]
#![feature(range_inclusive)]
#![feature(step_by)]
#![feature(str_escape)]
use std::iter::{empty, once, range_inclusive, repeat, Unfold}; 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_sync<T>(_: T) where T: Sync {}
fn is_send<T>(_: T) where T: Send {} fn is_send<T>(_: T) where T: Send {}

View file

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