Skip to content

Commit 2c56f19

Browse files
committed
Auto merge of #132662 - RalfJung:const-panic-inlining, r=<try>
tweak attributes for const panic macro Let's do some random mutations of this macro to see if that can re-gain the perf lost in #132542.
2 parents e8c698b + 9178693 commit 2c56f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub macro const_panic {
4040
// add the `rustc_allow_const_fn_unstable`. This is okay to do
4141
// because both variants will panic, just with different messages.
4242
#[rustc_allow_const_fn_unstable(const_eval_select)]
43-
#[inline(always)]
43+
#[inline]
4444
#[track_caller]
4545
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_panic", since = "CURRENT_RUSTC_VERSION"))]
4646
const fn do_panic($($arg: $ty),*) -> ! {

0 commit comments

Comments
 (0)