diff --git a/tests/integration.rs b/tests/integration.rs index 6b0eaee..cdb2114 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -735,10 +735,10 @@ mod concurrent { } } +#[cfg(feature = "escape-hatch")] mod escape_hatch { use super::*; - #[cfg(feature = "escape-hatch")] #[test] fn unchecked_lock_bypasses_ordering() { let m: Mutex = Mutex::new(42);