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
This commit is contained in:
commit
023b5136b5
@ -49,7 +49,7 @@ macro_rules! impl_from {
|
|||||||
// Rustdocs on the impl block show a "[+] show undocumented items" toggle.
|
// Rustdocs on the impl block show a "[+] show undocumented items" toggle.
|
||||||
// Rustdocs on functions do not.
|
// Rustdocs on functions do not.
|
||||||
#[doc = $doc]
|
#[doc = $doc]
|
||||||
#[inline]
|
#[inline(always)]
|
||||||
fn from(small: $Small) -> Self {
|
fn from(small: $Small) -> Self {
|
||||||
small as Self
|
small as Self
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user