Skip to content

Commit e16d286

Browse files
committed
add inline attributes to stage 0 methods
1 parent cc23d17 commit e16d286

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/num/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ macro_rules! int_impl {
859859

860860
/// Stage 0
861861
#[stable(feature = "num_wrapping", since = "1.2.0")]
862+
#[inline(always)]
862863
#[cfg(stage0)]
863864
pub fn wrapping_shl(self, rhs: u32) -> Self {
864865
self.overflowing_shl(rhs).0
@@ -894,6 +895,7 @@ macro_rules! int_impl {
894895

895896
/// Stage 0
896897
#[stable(feature = "num_wrapping", since = "1.2.0")]
898+
#[inline(always)]
897899
#[cfg(stage0)]
898900
pub fn wrapping_shr(self, rhs: u32) -> Self {
899901
self.overflowing_shr(rhs).0
@@ -2025,6 +2027,7 @@ macro_rules! uint_impl {
20252027

20262028
/// Stage 0
20272029
#[stable(feature = "num_wrapping", since = "1.2.0")]
2030+
#[inline(always)]
20282031
#[cfg(stage0)]
20292032
pub fn wrapping_shl(self, rhs: u32) -> Self {
20302033
self.overflowing_shl(rhs).0
@@ -2060,6 +2063,7 @@ macro_rules! uint_impl {
20602063

20612064
/// Stage 0
20622065
#[stable(feature = "num_wrapping", since = "1.2.0")]
2066+
#[inline(always)]
20632067
#[cfg(stage0)]
20642068
pub fn wrapping_shr(self, rhs: u32) -> Self {
20652069
self.overflowing_shr(rhs).0

0 commit comments

Comments
 (0)