Skip to content

Commit 023b513

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

File tree

1 file changed

+1
-1
lines changed
  • library/core/src/convert

1 file changed

+1
-1
lines changed

library/core/src/convert/num.rs

+1-1
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)