//! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type.
-#![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;
}
}
-#[cfg(feature = "unstable")]
+#[cfg(feature = "bench")]
#[bench]
fn bench_insertion(b: &mut ::test::Bencher) {
b.iter(|| {
})
}
-#[cfg(feature = "unstable")]
+#[cfg(feature = "bench")]
#[bench]
fn bench_get_missing(b: &mut ::test::Bencher) {
b.iter(|| {
})
}
-#[cfg(feature = "unstable")]
+#[cfg(feature = "bench")]
#[bench]
fn bench_get_present(b: &mut ::test::Bencher) {
b.iter(|| {