diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-09-26 07:48:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-09-26 07:48:43 -0700 |
| commit | 243030b1408a70f073878e5a206d46d43fc60dab (patch) | |
| tree | c22f19b219d8b2d274a625e80a5bec4f6162b5d8 /src/libstd | |
| parent | c3a1a0d3400bbbcac194efb6ef2b14eef9be5149 (diff) | |
| download | rust-243030b1408a70f073878e5a206d46d43fc60dab.tar.gz rust-243030b1408a70f073878e5a206d46d43fc60dab.zip | |
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!
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/panicking.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/panicking.rs b/src/libstd/panicking.rs index 6eb2db8e63b..f79c986cc89 100644 --- a/src/libstd/panicking.rs +++ b/src/libstd/panicking.rs @@ -517,6 +517,7 @@ pub fn update_count_then_panic(msg: Box<dyn Any + Send>) -> ! { } /// A private no-mangle function on which to slap yer breakpoints. +#[inline(never)] #[no_mangle] #[allow(private_no_mangle_fns)] // yes we get it, but we like breakpoints pub fn rust_panic(mut msg: &mut dyn BoxMeUp) -> ! { |
