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