We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c9de4 commit ebf865bCopy full SHA for ebf865b
2 files changed
library/core/src/panic.rs
@@ -169,7 +169,7 @@ pub macro const_panic {
169
#[noinline]
170
if const #[track_caller] #[inline] { // Inline this, to prevent codegen
171
$crate::panic!($const_msg)
172
- } else #[track_caller] { // Do not inline this, it makes perf worse
+ } else #[track_caller] #[inline] {
173
$crate::panic!($runtime_msg)
174
}
175
)
tests/codegen-llvm/intrinsics/likely_const_assert.rs
0 commit comments