From 319b052357f3c6bb2cc6a911f1f7e7ce82e2b85c Mon Sep 17 00:00:00 2001 From: varkor Date: Wed, 25 Jul 2018 14:27:27 +0100 Subject: Fix stage 2 tests --- src/liballoc/lib.rs | 8 +++----- src/liballoc/tests/lib.rs | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src/liballoc') 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)] -- cgit 1.4.1-3-g733a5