We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09838ae + 31f5c3b commit 17ffefcCopy full SHA for 17ffefc
library/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