Skip to content

Commit a3252cd

Browse files
committed
Auto merge of #105271 - eduardosm:inline-always-int-conv, r=scottmcm
Make integer-to-integer `From` impls `#[inline(always)]` Splited from rust-lang/rust#105262
2 parents 43ed205 + bc38f6f commit a3252cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/convert/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ macro_rules! impl_from {
4949
// Rustdocs on the impl block show a "[+] show undocumented items" toggle.
5050
// Rustdocs on functions do not.
5151
#[doc = $doc]
52-
#[inline]
52+
#[inline(always)]
5353
fn from(small: $Small) -> Self {
5454
small as Self
5555
}

0 commit comments

Comments
 (0)