Add inline(always) to function generated by macro

This commit is contained in:
Deadbeef 2022-08-26 16:44:07 +00:00
parent 075084f772
commit bd61b8fb3f

View File

@ -2179,6 +2179,7 @@ macro_rules! assert_unsafe_precondition {
if cfg!(debug_assertions) { if cfg!(debug_assertions) {
// allow non_snake_case to allow capturing const generics // allow non_snake_case to allow capturing const generics
#[allow(non_snake_case)] #[allow(non_snake_case)]
#[inline(always)]
fn runtime$(<$($tt)*>)?($($i:$ty),*) { fn runtime$(<$($tt)*>)?($($i:$ty),*) {
if !$e { if !$e {
// abort instead of panicking to reduce impact on code size // abort instead of panicking to reduce impact on code size