Skip to content

Commit

Permalink
Fix libstd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jun 17, 2015
1 parent 913c227 commit 4fcde6e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/librustc_trans/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(const_fn)]
#![feature(fs)]
#![feature(iter_cmp)]
#![feature(iter_arith)]
#![feature(libc)]
Expand Down
1 change: 1 addition & 0 deletions src/librustc_typeck/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
5 changes: 4 additions & 1 deletion src/libstd/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]
Expand All @@ -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))]

Expand Down
3 changes: 1 addition & 2 deletions src/libstd/sys/windows/thread_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 _;
}
Expand Down
3 changes: 1 addition & 2 deletions src/libstd/thread/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ mod imp {
mod imp {
use prelude::v1::*;

use alloc::boxed;
use cell::{Cell, UnsafeCell};
use marker;
use ptr;
Expand Down Expand Up @@ -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)
}
Expand Down
10 changes: 5 additions & 5 deletions src/test/run-pass/sync-send-iterators-in-libcore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 4fcde6e

Please sign in to comment.