From e4f803d33ac967e0e0f6214f4d0912cafa352859 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sat, 3 Oct 2026 21:58:14 +0000 Subject: [PATCH] Fix example for `intrinsics::abort_immediate` rename We have a `#![no_std]` example that calls `abort`. After rust-lang/rust#163574, that's spelled `abort_immediate` instead. Let's follow the change. --- src/beneath-std.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beneath-std.md b/src/beneath-std.md index 4c5bcca7..568c7695 100644 --- a/src/beneath-std.md +++ b/src/beneath-std.md @@ -63,7 +63,7 @@ extern "C" fn main(_argc: c_int, _argv: *const *const c_char) -> c_int { #[lang = "eh_personality"] fn rust_eh_personality() {} #[panic_handler] -fn panic_handler(_info: &PanicInfo) -> ! { core::intrinsics::abort() } +fn panic_handler(_info: &PanicInfo) -> ! { core::intrinsics::abort_immediate() } ``` If you are working with a target that doesn't have binary releases of the