mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 08:53:35 +00:00
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 functions do not.
|
||||
#[doc = $doc]
|
||||
#[inline]
|
||||
#[inline(always)]
|
||||
fn from(small: $Small) -> Self {
|
||||
small as Self
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user