X-Git-Url: https://git.chrismorgan.info/anymap/blobdiff_plain/82f41caeb9424c7111f670618f140a938c82604e..f1ea6f1cf92b3bfb345e05cd9db763226365656c:/src/lib.rs diff --git a/src/lib.rs b/src/lib.rs index 64a0f6b..7619367 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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(hashmap_hasher, raw))] -#![cfg_attr(all(feature = "unstable", test), feature(test))] +#![cfg_attr(all(feature = "bench", test), feature(test))] #![warn(missing_docs, unused_results)] -#[cfg(all(feature = "unstable", test))] +#[cfg(all(feature = "bench", test))] extern crate test; use std::any::TypeId; @@ -290,7 +289,7 @@ impl<'a, A: ?Sized + UncheckedAnyExt, V: IntoBox> VacantEntry<'a, A, V> { } } -#[cfg(feature = "unstable")] +#[cfg(feature = "bench")] #[bench] fn bench_insertion(b: &mut ::test::Bencher) { b.iter(|| { @@ -301,7 +300,7 @@ fn bench_insertion(b: &mut ::test::Bencher) { }) } -#[cfg(feature = "unstable")] +#[cfg(feature = "bench")] #[bench] fn bench_get_missing(b: &mut ::test::Bencher) { b.iter(|| { @@ -312,7 +311,7 @@ fn bench_get_missing(b: &mut ::test::Bencher) { }) } -#[cfg(feature = "unstable")] +#[cfg(feature = "bench")] #[bench] fn bench_get_present(b: &mut ::test::Bencher) { b.iter(|| {