Skip to content

Commit

Permalink
Fix stage 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Aug 5, 2018
1 parent 8cee487 commit 319b052
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 13 deletions.
8 changes: 3 additions & 5 deletions src/liballoc/lib.rs
Expand Up @@ -74,9 +74,10 @@
#![needs_allocator]
#![deny(missing_debug_implementations)]

#![cfg_attr(test, allow(deprecated))] // rand
#![cfg_attr(not(test), feature(fn_traits))]
#![cfg_attr(not(test), feature(generator_trait))]
#![cfg_attr(test, feature(rand, test))]
#![cfg_attr(test, feature(test))]

#![feature(allocator_api)]
#![feature(allow_internal_unstable)]
#![feature(arbitrary_self_types)]
Expand Down Expand Up @@ -117,9 +118,6 @@
#![feature(rustc_const_unstable)]
#![feature(const_vec_new)]

#![cfg_attr(not(test), feature(fn_traits))]
#![cfg_attr(test, feature(test))]

// Allow testing this library

#[cfg(test)]
Expand Down
2 changes: 0 additions & 2 deletions src/liballoc/tests/lib.rs
Expand Up @@ -17,9 +17,7 @@
#![feature(exact_size_is_empty)]
#![feature(pattern)]
#![feature(slice_sort_by_cached_key)]
#![feature(splice)]
#![feature(str_escape)]
#![feature(string_retain)]
#![feature(try_reserve)]
#![feature(unboxed_closures)]
#![feature(exact_chunks)]
Expand Down
1 change: 0 additions & 1 deletion src/libcore/tests/lib.rs
Expand Up @@ -26,7 +26,6 @@
#![feature(refcell_map_split)]
#![feature(refcell_replace_swap)]
#![feature(slice_patterns)]
#![feature(slice_rotate)]
#![feature(sort_internals)]
#![feature(specialization)]
#![feature(step_trait)]
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/lib.rs
Expand Up @@ -232,6 +232,7 @@

// std is implemented with unstable features, many of which are internal
// compiler details that will never be stable
#![cfg_attr(test, feature(test, update_panic_count))]
#![feature(alloc)]
#![feature(alloc_error_handler)]
#![feature(alloc_system)]
Expand Down Expand Up @@ -302,7 +303,6 @@
#![feature(doc_cfg)]
#![feature(doc_masked)]
#![feature(doc_spotlight)]
#![cfg_attr(test, feature(update_panic_count))]
#![cfg_attr(windows, feature(used))]
#![feature(doc_alias)]
#![feature(doc_keyword)]
Expand Down
Expand Up @@ -12,4 +12,4 @@
#![feature(staged_api)]
#![unstable(feature = "unstable_test_feature", issue = "0")]

pub fn baz() { }
pub fn baz() {}
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(test_feature)]
#![feature(unstable_test_feature)]

extern crate bar;

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/link-path-order/main.rs
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(libc, exit_status)]
#![feature(libc)]

extern crate libc;

Expand Down
Expand Up @@ -13,6 +13,7 @@
// no-prefer-dynamic
// ignore-cloudabi no processes
// ignore-emscripten no processes
// ignore-macos

extern crate exit_success_if_unwind;

Expand Down
1 change: 1 addition & 0 deletions src/test/run-pass/panic-runtime/abort.rs
Expand Up @@ -12,6 +12,7 @@
// no-prefer-dynamic
// ignore-cloudabi no processes
// ignore-emscripten no processes
// ignore-macos

use std::process::Command;
use std::env;
Expand Down
1 change: 1 addition & 0 deletions src/test/run-pass/panic-runtime/link-to-abort.rs
Expand Up @@ -10,6 +10,7 @@

// compile-flags:-C panic=abort
// no-prefer-dynamic
// ignore-macos

#![feature(panic_abort)]

Expand Down
1 change: 0 additions & 1 deletion src/tools/compiletest/src/main.rs
Expand Up @@ -10,7 +10,6 @@

#![crate_name = "compiletest"]
#![feature(test)]
#![feature(slice_rotate)]
#![deny(warnings)]

extern crate diff;
Expand Down

0 comments on commit 319b052

Please sign in to comment.