]> git.bitcoin.ninja Git - rust-lightning/commit
Stop building with lockorder debugging in benchmarks 2022-09-no-bench-lockorder
authorMatt Corallo <git@bluematt.me>
Fri, 16 Sep 2022 14:40:32 +0000 (14:40 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 16 Sep 2022 14:44:20 +0000 (14:44 +0000)
commit070dd74602a54162718ac6f28c4e9e7db8cc51bf
treef9ef48b81a48b77bcf11c37d986c3545c2f417be
parent8886d1dc76ce7bd815634c738d114e7d3572c4fe
Stop building with lockorder debugging in benchmarks

`cargo bench` sets `#[cfg(test)]` so our current checks for
enabling our lockorder debugging end up matching when we're trying
to build performance benchmarks.

This adds explicit checks to our debug_lockorder logic to filter
out `feature = "_bench_unstable"` builds.
lightning/src/lib.rs
lightning/src/util/mod.rs