|
54 | 54 |
|
55 | 55 | #![cfg_attr(all(not(feature = "std"), not(test)), no_std)] |
56 | 56 |
|
57 | | -#![cfg_attr(all(any(test, feature = "_test_utils"), feature = "_bench_unstable"), feature(test))] |
58 | | -#[cfg(all(any(test, feature = "_test_utils"), feature = "_bench_unstable"))] extern crate test; |
| 57 | +#![cfg_attr(bench), feature(test)] |
| 58 | +#[cfg(bench)] extern crate test; |
59 | 59 |
|
60 | 60 | #[cfg(not(any(feature = "std", feature = "no-std")))] |
61 | 61 | compile_error!("at least one of the `std` or `no-std` features must be enabled"); |
@@ -175,18 +175,18 @@ mod prelude { |
175 | 175 | pub use alloc::string::ToString; |
176 | 176 | } |
177 | 177 |
|
178 | | -#[cfg(all(not(feature = "_bench_unstable"), feature = "std", test))] |
| 178 | +#[cfg(all(not(bench), feature = "std", test))] |
179 | 179 | mod debug_sync; |
180 | | -#[cfg(all(not(feature = "_bench_unstable"), feature = "backtrace", feature = "std", test))] |
| 180 | +#[cfg(all(not(bench), feature = "backtrace", feature = "std", test))] |
181 | 181 | extern crate backtrace; |
182 | 182 |
|
183 | 183 | #[cfg(feature = "std")] |
184 | 184 | mod sync { |
185 | | - #[cfg(all(not(feature = "_bench_unstable"), test))] |
| 185 | + #[cfg(all(not(bench), test))] |
186 | 186 | pub use crate::debug_sync::*; |
187 | | - #[cfg(any(feature = "_bench_unstable", not(test)))] |
| 187 | + #[cfg(any(bench, not(test)))] |
188 | 188 | pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard}; |
189 | | - #[cfg(any(feature = "_bench_unstable", not(test)))] |
| 189 | + #[cfg(any(bench, not(test)))] |
190 | 190 | pub use crate::util::fairrwlock::FairRwLock; |
191 | 191 | } |
192 | 192 |
|
|
0 commit comments