Skip to content

Commit 25b5af1

Browse files
committed
Auto merge of #113024 - Jerrody:master, r=thomcc
`Default`: Always inline primitive data types.
2 parents 06c58cb + bb33730 commit 25b5af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/core/src/default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ macro_rules! default_impl {
190190
($t:ty, $v:expr, $doc:tt) => {
191191
#[stable(feature = "rust1", since = "1.0.0")]
192192
impl Default for $t {
193-
#[inline]
193+
#[inline(always)]
194194
#[doc = $doc]
195195
fn default() -> $t {
196196
$v

0 commit comments

Comments
 (0)