summaryrefslogtreecommitdiff
path: root/components/rust/core/src/panic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/rust/core/src/panic.rs')
-rw-r--r--components/rust/core/src/panic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rust/core/src/panic.rs b/components/rust/core/src/panic.rs
index 371f86fdb6..b45ad7d1a3 100644
--- a/components/rust/core/src/panic.rs
+++ b/components/rust/core/src/panic.rs
@@ -24,7 +24,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
}
#[linkage = "weak"]
-#[unsafe(no_mangle)]
+#[no_mangle]
fn __rust_panic() -> ! {
/* Default weak panic handler: loops forever to halt execution. */
print!("Entered weak panic handler: system will halt.");