mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Add inline(always)
to function generated by macro
This commit is contained in:
parent
075084f772
commit
bd61b8fb3f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user