Remove now-unnecessary #[allow]s.
[anymap] / src / lib.rs
index b5ae44a59108ae5f447c8c16e9d120db4b4371bf..761936763fa48a3e0185e3b82d9eea66cadd4630 100644 (file)
@@ -1,10 +1,9 @@
 //! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type.
 
-#![cfg_attr(feature = "unstable", feature(core, std_misc))]
-#![cfg_attr(test, feature(test))]
+#![cfg_attr(all(feature = "bench", test), feature(test))]
 #![warn(missing_docs, unused_results)]
 
-#[cfg(test)]
+#[cfg(all(feature = "bench", test))]
 extern crate test;
 
 use std::any::TypeId;
@@ -290,6 +289,7 @@ impl<'a, A: ?Sized + UncheckedAnyExt, V: IntoBox<A>> VacantEntry<'a, A, V> {
     }
 }
 
+#[cfg(feature = "bench")]
 #[bench]
 fn bench_insertion(b: &mut ::test::Bencher) {
     b.iter(|| {
@@ -300,6 +300,7 @@ fn bench_insertion(b: &mut ::test::Bencher) {
     })
 }
 
+#[cfg(feature = "bench")]
 #[bench]
 fn bench_get_missing(b: &mut ::test::Bencher) {
     b.iter(|| {
@@ -310,6 +311,7 @@ fn bench_get_missing(b: &mut ::test::Bencher) {
     })
 }
 
+#[cfg(feature = "bench")]
 #[bench]
 fn bench_get_present(b: &mut ::test::Bencher) {
     b.iter(|| {