From e0ec4c7ea0ac7703697a253ac01be6329bd7b806 Mon Sep 17 00:00:00 2001 From: Thomas Dangl <44264282+thomasdangl@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:03:58 +0100 Subject: [PATCH] remove inlining of panic_misaligned_pointer_dereference for builds with panic_immediate_abort --- library/core/src/panicking.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/library/core/src/panicking.rs b/library/core/src/panicking.rs index 1b6e77b96b1dd..d8da7a6c01b9d 100644 --- a/library/core/src/panicking.rs +++ b/library/core/src/panicking.rs @@ -209,7 +209,6 @@ fn panic_bounds_check(index: usize, len: usize) -> ! { } #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never), cold)] -#[cfg_attr(feature = "panic_immediate_abort", inline)] #[track_caller] #[lang = "panic_misaligned_pointer_dereference"] // needed by codegen for panic on misaligned pointer deref #[rustc_nounwind] // `CheckAlignment` MIR pass requires this function to never unwind