Skip to content

Commit 9178693

Browse files
committed
tweak attributes for const panic macro
1 parent e8c698b commit 9178693

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)