mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Make integer-to-integer From
impls #[inline(always)]
This commit is contained in:
parent
344889e963
commit
2e51122647
@ -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