summaryrefslogtreecommitdiff
path: root/components/rust/core/src/panic.rs
diff options
context:
space:
mode:
authorbernard <[email protected]>2025-12-13 21:42:29 +0800
committerR b b666 <[email protected]>2025-12-15 12:50:49 +0800
commit4f154d8207be7320be07477fe3857523b1704977 (patch)
treed32fa76e74dccef9a58c7b5d54d10a2f4f54c4d6 /components/rust/core/src/panic.rs
parent3c459aecea7135f96d9ebd291d276a6e18fd97c7 (diff)
[rust] Tidy core defaults and migrate docs to README
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.");