Skip to content

Commit

Permalink
Unrolled build for rust-lang#133182
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#133182 - RalfJung:const-panic-inline, r=tgross35

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
rust-timer authored Nov 19, 2024
2 parents 5926e82 + 31f5c3b commit 397a417
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 397a417

Please sign in to comment.