Skip to content

Commit dc28f9b

Browse files
Merge pull request #1725 from TheBlueMatt/2022-09-no-bench-lockorder
Stop building with lockorder debugging in benchmarks
2 parents ca76d06 + 070dd74 commit dc28f9b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lightning/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,18 @@ mod prelude {
173173
pub use alloc::string::ToString;
174174
}
175175

176-
#[cfg(all(feature = "std", test))]
176+
#[cfg(all(not(feature = "_bench_unstable"), feature = "std", test))]
177177
mod debug_sync;
178-
#[cfg(all(feature = "backtrace", feature = "std", test))]
178+
#[cfg(all(not(feature = "_bench_unstable"), feature = "backtrace", feature = "std", test))]
179179
extern crate backtrace;
180180

181181
#[cfg(feature = "std")]
182182
mod sync {
183-
#[cfg(test)]
183+
#[cfg(all(not(feature = "_bench_unstable"), test))]
184184
pub use debug_sync::*;
185-
#[cfg(not(test))]
185+
#[cfg(any(feature = "_bench_unstable", not(test)))]
186186
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
187-
#[cfg(not(test))]
187+
#[cfg(any(feature = "_bench_unstable", not(test)))]
188188
pub use crate::util::fairrwlock::FairRwLock;
189189
}
190190

lightning/src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub mod wakers;
2626
pub(crate) mod atomic_counter;
2727
pub(crate) mod byte_utils;
2828
pub(crate) mod chacha20;
29-
#[cfg(all(not(test), feature = "std"))]
29+
#[cfg(all(any(feature = "_bench_unstable", not(test)), feature = "std"))]
3030
pub(crate) mod fairrwlock;
3131
#[cfg(fuzzing)]
3232
pub mod zbase32;

0 commit comments

Comments
 (0)