about summary refs log tree commit diff
path: root/src/liballoc
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 /src/liballoc
parent8cee487eb305a9ce1cdd7c6f7875c32be02da194 (diff)
downloadrust-319b052357f3c6bb2cc6a911f1f7e7ce82e2b85c.tar.gz
rust-319b052357f3c6bb2cc6a911f1f7e7ce82e2b85c.zip
Fix stage 2 tests
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs8
-rw-r--r--src/liballoc/tests/lib.rs2
2 files changed, 3 insertions, 7 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)]