diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-01-22 23:49:57 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-01-26 09:29:28 -0800 |
| commit | cb343c33acf0f9833d8d6eb637234acf4321976b (patch) | |
| tree | e8f94b5bd4fac82b36d1ea8efa37e8690e8229eb /src/liballoc | |
| parent | 4b3c35509b7bd75c0b4712bb45440955d997ae75 (diff) | |
| download | rust-cb343c33acf0f9833d8d6eb637234acf4321976b.tar.gz rust-cb343c33acf0f9833d8d6eb637234acf4321976b.zip | |
Fix warnings during tests
The deny(warnings) attribute is now enabled for tests so we need to weed out these warnings as well.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed_test.rs | 1 | ||||
| -rw-r--r-- | src/liballoc/lib.rs | 13 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/liballoc/boxed_test.rs b/src/liballoc/boxed_test.rs index e7da6d04d3f..120301afa44 100644 --- a/src/liballoc/boxed_test.rs +++ b/src/liballoc/boxed_test.rs @@ -15,7 +15,6 @@ use core::ops::Deref; use core::result::Result::{Ok, Err}; use core::clone::Clone; -use std::boxed; use std::boxed::Box; #[test] diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 403baa4a7b2..1438103d7f6 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -75,31 +75,28 @@ #![feature(allocator)] #![feature(box_syntax)] #![feature(coerce_unsized)] +#![feature(const_fn)] #![feature(core_intrinsics)] #![feature(custom_attribute)] +#![feature(drop_in_place)] +#![feature(dropck_parametricity)] #![feature(fundamental)] #![feature(lang_items)] +#![feature(needs_allocator)] #![feature(optin_builtin_traits)] #![feature(placement_in_syntax)] -#![feature(placement_new_protocol)] -#![feature(raw)] #![feature(shared)] #![feature(staged_api)] #![feature(unboxed_closures)] #![feature(unique)] #![feature(unsafe_no_drop_flag, filling_drop)] -#![feature(dropck_parametricity)] #![feature(unsize)] -#![feature(drop_in_place)] -#![feature(fn_traits)] -#![feature(const_fn)] - -#![feature(needs_allocator)] // Issue# 30592: Systematically use alloc_system during stage0 since jemalloc // might be unavailable or disabled #![cfg_attr(stage0, feature(alloc_system))] +#![cfg_attr(not(test), feature(raw, fn_traits, placement_new_protocol))] #![cfg_attr(test, feature(test, rustc_private, box_heap))] #[cfg(stage0)] |
