Skip to content

Commit 243030b

Browse files
committed
std: Don't let rust_panic get inlined
It's meant for breakpoints, so if it gets inlined we can't set a breakpoint on it easily!
1 parent c3a1a0d commit 243030b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/panicking.rs

+1
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ pub fn update_count_then_panic(msg: Box<dyn Any + Send>) -> ! {
517517
}
518518

519519
/// A private no-mangle function on which to slap yer breakpoints.
520+
#[inline(never)]
520521
#[no_mangle]
521522
#[allow(private_no_mangle_fns)] // yes we get it, but we like breakpoints
522523
pub fn rust_panic(mut msg: &mut dyn BoxMeUp) -> ! {

0 commit comments

Comments
 (0)