Auto merge of - 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:
bors 2022-12-06 21:41:04 +00:00
commit 023b5136b5

View File

@ -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
}