Skip to content

Commit bd61b8f

Browse files
committed
Add inline(always) to function generated by macro
1 parent 075084f commit bd61b8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,7 @@ macro_rules! assert_unsafe_precondition {
21792179
if cfg!(debug_assertions) {
21802180
// allow non_snake_case to allow capturing const generics
21812181
#[allow(non_snake_case)]
2182+
#[inline(always)]
21822183
fn runtime$(<$($tt)*>)?($($i:$ty),*) {
21832184
if !$e {
21842185
// abort instead of panicking to reduce impact on code size

0 commit comments

Comments
 (0)