Skip to content

Commit

Permalink
Rollup merge of rust-lang#133182 - RalfJung:const-panic-inline, r=tgr…
Browse files Browse the repository at this point in the history
…oss35

const_panic: inline in bootstrap builds to avoid f16/f128 crashes

This should fix rust-lang#133177. ``@uweigand`` could you test that?
  • Loading branch information
fmease authored Nov 19, 2024
2 parents e6cd122 + e84f865 commit 607b493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 607b493

Please sign in to comment.