From e16d286b8170e76f8a725b507c6c8fa91c3a28bf Mon Sep 17 00:00:00 2001 From: Tim Neumann Date: Sat, 18 Mar 2017 14:52:35 +0100 Subject: [PATCH] add inline attributes to stage 0 methods --- src/libcore/num/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index d12002fdfa7f2..0411fb7741f70 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -859,6 +859,7 @@ macro_rules! int_impl { /// Stage 0 #[stable(feature = "num_wrapping", since = "1.2.0")] + #[inline(always)] #[cfg(stage0)] pub fn wrapping_shl(self, rhs: u32) -> Self { self.overflowing_shl(rhs).0 @@ -894,6 +895,7 @@ macro_rules! int_impl { /// Stage 0 #[stable(feature = "num_wrapping", since = "1.2.0")] + #[inline(always)] #[cfg(stage0)] pub fn wrapping_shr(self, rhs: u32) -> Self { self.overflowing_shr(rhs).0 @@ -2025,6 +2027,7 @@ macro_rules! uint_impl { /// Stage 0 #[stable(feature = "num_wrapping", since = "1.2.0")] + #[inline(always)] #[cfg(stage0)] pub fn wrapping_shl(self, rhs: u32) -> Self { self.overflowing_shl(rhs).0 @@ -2060,6 +2063,7 @@ macro_rules! uint_impl { /// Stage 0 #[stable(feature = "num_wrapping", since = "1.2.0")] + #[inline(always)] #[cfg(stage0)] pub fn wrapping_shr(self, rhs: u32) -> Self { self.overflowing_shr(rhs).0