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