const_panic: inline in bootstrap builds to avoid f16/f128 crashes
This commit is contained in:
parent
c602e9aeaa
commit
31f5c3ba69
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue