Auto merge of #113024 - Jerrody:master, r=thomcc

`Default`: Always inline primitive data types.
This commit is contained in:
bors 2023-06-26 06:45:04 +00:00
commit 25b5af1b3a

View File

@ -190,7 +190,7 @@ macro_rules! default_impl {
($t:ty, $v:expr, $doc:tt) => { ($t:ty, $v:expr, $doc:tt) => {
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
impl Default for $t { impl Default for $t {
#[inline] #[inline(always)]
#[doc = $doc] #[doc = $doc]
fn default() -> $t { fn default() -> $t {
$v $v