Skip to content

Commit

Permalink
add inline attributes to stage 0 methods
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Mar 18, 2017
1 parent cc23d17 commit e16d286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e16d286

Please sign in to comment.