Skip to content

Commit

Permalink
Rollup merge of #133182 - RalfJung:const-panic-inline, r=tgross35
Browse files Browse the repository at this point in the history
const_panic: inline in bootstrap builds to avoid f16/f128 crashes

This should fix #133177. ``@uweigand`` could you test that?
  • Loading branch information
fmease authored Nov 19, 2024
2 parents 09838ae + 31f5c3b commit 17ffefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub macro const_panic {
#[noinline]
if const #[track_caller] #[inline] { // Inline this, to prevent codegen
$crate::panic!($const_msg)
} else #[track_caller] { // Do not inline this, it makes perf worse
} else #[track_caller] #[cfg_attr(bootstrap, inline)] { // Do not inline this, it makes perf worse
$crate::panic!($runtime_msg)
}
)
Expand Down

0 comments on commit 17ffefc

Please sign in to comment.