Skip to content

Commit

Permalink
Auto merge of rust-lang#105271 - eduardosm:inline-always-int-conv, r=…
Browse files Browse the repository at this point in the history
…scottmcm

Make integer-to-integer `From` impls `#[inline(always)]`

Splited from rust-lang#105262
  • Loading branch information
bors committed Dec 6, 2022
2 parents b28d30e + 2e51122 commit 023b513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/convert/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 023b513

Please sign in to comment.