about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-07-25 14:27:27 +0100
committervarkor <github@varkor.com>2018-08-05 15:54:49 +0100
commit319b052357f3c6bb2cc6a911f1f7e7ce82e2b85c (patch)
treea85884f2e2410c5065ad1e22b78af4f2758aa5e7
parent8cee487eb305a9ce1cdd7c6f7875c32be02da194 (diff)
downloadrust-319b052357f3c6bb2cc6a911f1f7e7ce82e2b85c.tar.gz
rust-319b052357f3c6bb2cc6a911f1f7e7ce82e2b85c.zip
Fix stage 2 tests
-rw-r--r--src/liballoc/lib.rs8
-rw-r--r--src/liballoc/tests/lib.rs2
-rw-r--r--src/libcore/tests/lib.rs1
-rw-r--r--src/libstd/lib.rs2
-rw-r--r--src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs2
-rw-r--r--src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs2
-rw-r--r--src/test/run-make-fulldeps/link-path-order/main.rs2
-rw-r--r--src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs1
-rw-r--r--src/test/run-pass/panic-runtime/abort.rs1
-rw-r--r--src/test/run-pass/panic-runtime/link-to-abort.rs1
-rw-r--r--src/tools/compiletest/src/main.rs1
11 files changed, 10 insertions, 13 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index aaafcd84dd7..d1b607bbe9b 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -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)]
@@ -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)]
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs
index ad1e5807562..c12c7a81f79 100644
--- a/src/liballoc/tests/lib.rs
+++ b/src/liballoc/tests/lib.rs
@@ -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)]
diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs
index 87bb623a5b1..b77e9e49773 100644
--- a/src/libcore/tests/lib.rs
+++ b/src/libcore/tests/lib.rs
@@ -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)]
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 4f462658eb6..444bbe15e11 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -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)]
@@ -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)]
diff --git a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs b/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs
index 5eb62316d81..1dad2ed9052 100644
--- a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs
+++ b/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs
@@ -12,4 +12,4 @@
 #![feature(staged_api)]
 #![unstable(feature = "unstable_test_feature", issue = "0")]
 
-pub fn baz() { }
+pub fn baz() {}
diff --git a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs b/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs
index a36cc474c2b..b728136a89e 100644
--- a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs
+++ b/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs
@@ -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;
 
diff --git a/src/test/run-make-fulldeps/link-path-order/main.rs b/src/test/run-make-fulldeps/link-path-order/main.rs
index aaac3927f1c..f3502e8bcd4 100644
--- a/src/test/run-make-fulldeps/link-path-order/main.rs
+++ b/src/test/run-make-fulldeps/link-path-order/main.rs
@@ -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;
 
diff --git a/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs b/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs
index 6917c2db3b4..731603606e4 100644
--- a/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs
+++ b/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs
@@ -13,6 +13,7 @@
 // no-prefer-dynamic
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
+// ignore-macos
 
 extern crate exit_success_if_unwind;
 
diff --git a/src/test/run-pass/panic-runtime/abort.rs b/src/test/run-pass/panic-runtime/abort.rs
index 3a3b86aec02..4692ad3ca2f 100644
--- a/src/test/run-pass/panic-runtime/abort.rs
+++ b/src/test/run-pass/panic-runtime/abort.rs
@@ -12,6 +12,7 @@
 // no-prefer-dynamic
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
+// ignore-macos
 
 use std::process::Command;
 use std::env;
diff --git a/src/test/run-pass/panic-runtime/link-to-abort.rs b/src/test/run-pass/panic-runtime/link-to-abort.rs
index 1b9a6cf8500..9f5407e4526 100644
--- a/src/test/run-pass/panic-runtime/link-to-abort.rs
+++ b/src/test/run-pass/panic-runtime/link-to-abort.rs
@@ -10,6 +10,7 @@
 
 // compile-flags:-C panic=abort
 // no-prefer-dynamic
+// ignore-macos
 
 #![feature(panic_abort)]
 
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index 2bfc1ece095..c1d3df79222 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -10,7 +10,6 @@
 
 #![crate_name = "compiletest"]
 #![feature(test)]
-#![feature(slice_rotate)]
 #![deny(warnings)]
 
 extern crate diff;