- #[cfg(test)]
- pub use debug_sync::*;
- #[cfg(not(test))]
- pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard};
- #[cfg(not(test))]
+ #[cfg(all(not(feature = "_bench_unstable"), test))]
+ pub use crate::debug_sync::*;
+ #[cfg(any(feature = "_bench_unstable", not(test)))]
+ pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
+ #[cfg(any(feature = "_bench_unstable", not(test)))]