We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6cd122 + e84f865 commit 607b493Copy full SHA for 607b493
core/src/panic.rs
@@ -215,7 +215,7 @@ pub macro const_panic {
215
#[noinline]
216
if const #[track_caller] #[inline] { // Inline this, to prevent codegen
217
$crate::panic!($const_msg)
218
- } 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
219
$crate::panic!($runtime_msg)
220
}
221
)
0 commit comments