From 3b49ab6e4816fd79cf77d0813ceb17d5696d577c Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 1 Oct 2019 04:10:51 +0000 Subject: [PATCH 1/2] Inline `{min,max}_value` even in debug builds --- src/libcore/num/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 933a2a124733b..7715243b4942f 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -252,7 +252,7 @@ Basic usage: $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] - #[inline] + #[inline(always)] #[rustc_promotable] pub const fn min_value() -> Self { !0 ^ ((!0 as $UnsignedT) >> 1) as Self @@ -271,7 +271,7 @@ Basic usage: $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] - #[inline] + #[inline(always)] #[rustc_promotable] pub const fn max_value() -> Self { !Self::min_value() @@ -2308,7 +2308,7 @@ Basic usage: ```"), #[stable(feature = "rust1", since = "1.0.0")] #[rustc_promotable] - #[inline] + #[inline(always)] pub const fn min_value() -> Self { 0 } } @@ -2325,7 +2325,7 @@ stringify!($MaxV), ");", $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] #[rustc_promotable] - #[inline] + #[inline(always)] pub const fn max_value() -> Self { !0 } } From b3fe5116354180782fa1bc46b2e15f0c59eccfb4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 2 Oct 2019 07:47:38 -0700 Subject: [PATCH 2/2] Update llvm-project submodule Bring in rust-lang/llvm-project#24 which brings in some wasm improvements related to the bulk-memory proposal --- src/llvm-project | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llvm-project b/src/llvm-project index 8adf9bdccfefb..8473db5f2af9d 160000 --- a/src/llvm-project +++ b/src/llvm-project @@ -1 +1 @@ -Subproject commit 8adf9bdccfefb8d03f0e8db3b012fb41da1580a4 +Subproject commit 8473db5f2af9dc36aaf6f9b053fcc2e0e6ac8026