Skip to content

Commit 607b493

Browse files
authored
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?
2 parents e6cd122 + e84f865 commit 607b493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub macro const_panic {
215215
#[noinline]
216216
if const #[track_caller] #[inline] { // Inline this, to prevent codegen
217217
$crate::panic!($const_msg)
218-
} else #[track_caller] { // Do not inline this, it makes perf worse
218+
} else #[track_caller] #[cfg_attr(bootstrap, inline)] { // Do not inline this, it makes perf worse
219219
$crate::panic!($runtime_msg)
220220
}
221221
)

0 commit comments

Comments
 (0)