Skip to content

Commit 25e1358

Browse files
committed
Guard against unwinding in cleanup code
1 parent 392ed69 commit 25e1358

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/panicking.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ fn panic_bounds_check(index: usize, len: usize) -> ! {
8787

8888
#[cfg(not(bootstrap))]
8989
#[cold]
90-
#[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))]
91-
#[track_caller]
90+
#[inline(never)]
9291
#[lang = "panic_no_unwind"] // needed by codegen for panic in nounwind function
9392
fn panic_no_unwind() -> ! {
9493
if cfg!(feature = "panic_immediate_abort") {

0 commit comments

Comments
 (0)