From 016d324c51387842a3c9e67bd8c36f08f9496fd9 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 5 Mar 2016 13:13:19 +1100 Subject: [PATCH] Rename "unstable" feature to "bench". Benchmarking is the only thing that requires unstable Rust in the library any more. Yay! --- Cargo.toml | 2 +- src/lib.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f13b83b..dab3c2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,4 @@ keywords = ["container", "data-structure", "map"] license = "MIT/Apache-2.0" [features] -unstable = [] +bench = [] diff --git a/src/lib.rs b/src/lib.rs index 6eac7dc..7619367 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,9 @@ //! 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; @@ -289,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(|| { @@ -300,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(|| { @@ -311,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(|| { -- 2.42.0