diff --git a/proptest/src/test_runner/scoped_panic_hook.rs b/proptest/src/test_runner/scoped_panic_hook.rs index 79d64005..97baef12 100644 --- a/proptest/src/test_runner/scoped_panic_hook.rs +++ b/proptest/src/test_runner/scoped_panic_hook.rs @@ -64,6 +64,7 @@ mod internal { return; } + #[allow(static_mut_refs)] if let Some(hook) = unsafe { DEFAULT_HOOK.as_ref() } { (hook)(info); }