Skip to content

Commit 4fcde6e

Browse files
committed
Fix libstd tests
1 parent 913c227 commit 4fcde6e

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

src/librustc_trans/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#![feature(box_patterns)]
2929
#![feature(box_syntax)]
3030
#![feature(const_fn)]
31-
#![feature(fs)]
3231
#![feature(iter_cmp)]
3332
#![feature(iter_arith)]
3433
#![feature(libc)]

src/librustc_typeck/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ This API is completely unstable and subject to change.
7575

7676
#![allow(non_camel_case_types)]
7777

78+
#![feature(append)]
7879
#![feature(box_patterns)]
7980
#![feature(box_syntax)]
8081
#![feature(drain)]

src/libstd/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
#![feature(alloc)]
107107
#![feature(allow_internal_unstable)]
108108
#![feature(associated_consts)]
109+
#![feature(borrow_state)]
109110
#![feature(box_raw)]
110111
#![feature(box_syntax)]
111112
#![feature(char_internals)]
@@ -130,7 +131,6 @@
130131
#![feature(slice_concat_ext)]
131132
#![feature(slice_position_elem)]
132133
#![feature(no_std)]
133-
#![feature(num_bits_bytes)]
134134
#![feature(oom)]
135135
#![feature(optin_builtin_traits)]
136136
#![feature(rand)]
@@ -148,6 +148,9 @@
148148
#![feature(vec_push_all)]
149149
#![feature(wrapping)]
150150
#![feature(zero_one)]
151+
#![cfg_attr(all(unix, not(target_os = "macos"), not(target_os = "ios")),
152+
feature(num_bits_bytes))]
153+
#![cfg_attr(windows, feature(str_utf16))]
151154
#![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))]
152155
#![cfg_attr(test, feature(test, rustc_private, float_consts))]
153156

src/libstd/sys/windows/thread_local.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use prelude::v1::*;
1212

1313
use libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};
1414

15-
use boxed;
1615
use ptr;
1716
use rt;
1817
use sys_common::mutex::Mutex;
@@ -143,7 +142,7 @@ unsafe fn init_dtors() {
143142
DTOR_LOCK.unlock();
144143
});
145144
if res.is_ok() {
146-
DTORS = boxed::into_raw(dtors);
145+
DTORS = Box::into_raw(dtors);
147146
} else {
148147
DTORS = 1 as *mut _;
149148
}

src/libstd/thread/local.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ mod imp {
405405
mod imp {
406406
use prelude::v1::*;
407407

408-
use alloc::boxed;
409408
use cell::{Cell, UnsafeCell};
410409
use marker;
411410
use ptr;
@@ -447,7 +446,7 @@ mod imp {
447446
key: self,
448447
value: UnsafeCell::new(None),
449448
};
450-
let ptr = boxed::into_raw(ptr);
449+
let ptr = Box::into_raw(ptr);
451450
self.os.set(ptr as *mut u8);
452451
Some(&(*ptr).value)
453452
}

src/test/run-pass/sync-send-iterators-in-libcore.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
// pretty-expanded FIXME #23616
1212

13-
#![allow(unused_mut)]
14-
#![feature(core)]
15-
#![feature(collections)]
16-
#![feature(step_by)]
13+
#![allow(warnings)]
1714
#![feature(iter_empty)]
1815
#![feature(iter_once)]
16+
#![feature(iter_unfold)]
17+
#![feature(range_inclusive)]
18+
#![feature(step_by)]
19+
#![feature(str_escape)]
1920

2021
use std::iter::{empty, once, range_inclusive, repeat, Unfold};
21-
>>>>>>> Fallout in tests and docs from feature renamings
2222

2323
fn is_sync<T>(_: T) where T: Sync {}
2424
fn is_send<T>(_: T) where T: Send {}

0 commit comments

Comments
 (0)