diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-18 18:17:02 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-11-18 18:17:02 +0100 |
| commit | 31f5c3ba69f68c911773e2f126e98994c60bf58e (patch) | |
| tree | 9b3e98dd397a89c84bcbfa86e7d641de5f318a04 /library | |
| parent | c602e9aeaab636302d52b17da64e84044462a230 (diff) | |
| download | rust-31f5c3ba69f68c911773e2f126e98994c60bf58e.tar.gz rust-31f5c3ba69f68c911773e2f126e98994c60bf58e.zip | |
const_panic: inline in bootstrap builds to avoid f16/f128 crashes
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/panic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/panic.rs b/library/core/src/panic.rs index e702056f00a..179aadf0c28 100644 --- a/library/core/src/panic.rs +++ b/library/core/src/panic.rs @@ -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) } ) |
