From 689b5355ba745f6e8cf3346e44c298c07b1ed939 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Mon, 28 Oct 2024 00:26:11 -0700 Subject: [PATCH] crates/sel4-panicking: Address warning Signed-off-by: Nick Spinale --- crates/sel4-panicking/src/strategy/unwind/without_alloc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/sel4-panicking/src/strategy/unwind/without_alloc.rs b/crates/sel4-panicking/src/strategy/unwind/without_alloc.rs index fa4edbc7d..40a1fe7d8 100644 --- a/crates/sel4-panicking/src/strategy/unwind/without_alloc.rs +++ b/crates/sel4-panicking/src/strategy/unwind/without_alloc.rs @@ -56,6 +56,7 @@ pub(crate) fn start_panic(payload: Payload) -> i32 { assert!(CURRENT_PAYLOAD.replace(Some(payload)).is_none()); + #[allow(static_mut_refs)] unsafe { assert!(!CURRENT_EXCEPTION.exception_present); CURRENT_EXCEPTION = CurrentException {