Skip to content

Commit

Permalink
Add inline(always) to function generated by macro
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed Sep 4, 2022
1 parent 075084f commit bd61b8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,7 @@ macro_rules! assert_unsafe_precondition {
if cfg!(debug_assertions) {
// allow non_snake_case to allow capturing const generics
#[allow(non_snake_case)]
#[inline(always)]
fn runtime$(<$($tt)*>)?($($i:$ty),*) {
if !$e {
// abort instead of panicking to reduce impact on code size
Expand Down

0 comments on commit bd61b8f

Please sign in to comment.