about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-06 21:41:04 +0000
committerbors <bors@rust-lang.org>2022-12-06 21:41:04 +0000
commit023b5136b597053f76941b54eeae668219e6e18d (patch)
treeabab1af8a52b60f2545b5ef3a5aa5b45eabfa76f
parentb28d30e1e3c2b90fd08b7dd79d8e63884d1e0339 (diff)
parent2e51122647d5c4c21309b6f6287cd63e6a9dcf8b (diff)
downloadrust-023b5136b597053f76941b54eeae668219e6e18d.tar.gz
rust-023b5136b597053f76941b54eeae668219e6e18d.zip
Auto merge of #105271 - eduardosm:inline-always-int-conv, r=scottmcm
Make integer-to-integer `From` impls `#[inline(always)]`

Splited from https://github.com/rust-lang/rust/pull/105262
-rw-r--r--library/core/src/convert/num.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/convert/num.rs b/library/core/src/convert/num.rs
index 4fa5d129bc6..9c0d7e9a1e8 100644
--- a/library/core/src/convert/num.rs
+++ b/library/core/src/convert/num.rs
@@ -49,7 +49,7 @@ macro_rules! impl_from {
             // Rustdocs on the impl block show a "[+] show undocumented items" toggle.
             // Rustdocs on functions do not.
             #[doc = $doc]
-            #[inline]
+            #[inline(always)]
             fn from(small: $Small) -> Self {
                 small as Self
             }