From bb3373036128a3c5a911f9216c6c3a004d271a49 Mon Sep 17 00:00:00 2001 From: George Date: Sun, 25 Jun 2023 12:36:21 +0300 Subject: [PATCH] Always inline primitive data types. --- library/core/src/default.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/default.rs b/library/core/src/default.rs index 09dbc95810f..1f7be85d38a 100644 --- a/library/core/src/default.rs +++ b/library/core/src/default.rs @@ -190,7 +190,7 @@ macro_rules! default_impl { ($t:ty, $v:expr, $doc:tt) => { #[stable(feature = "rust1", since = "1.0.0")] impl Default for $t { - #[inline] + #[inline(always)] #[doc = $doc] fn default() -> $t { $v