about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-08-26 16:44:07 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-09-04 20:35:23 +0800
commitbd61b8fb3ff04de61f40ea62043b17dc1e418c4c (patch)
treea8cd2983aac6a17bc97673893257479095fe7cfa
parent075084f772abbc53263fc946c047a01e0dd65f80 (diff)
downloadrust-bd61b8fb3ff04de61f40ea62043b17dc1e418c4c.tar.gz
rust-bd61b8fb3ff04de61f40ea62043b17dc1e418c4c.zip
Add `inline(always)` to function generated by macro
-rw-r--r--library/core/src/intrinsics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs
index 12e4dfe74fb..56f5824efd4 100644
--- a/library/core/src/intrinsics.rs
+++ b/library/core/src/intrinsics.rs
@@ -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