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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue