mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
add inline attributes to stage 0 methods
This commit is contained in:
@@ -859,6 +859,7 @@ pub fn wrapping_shl(self, rhs: u32) -> Self {
|
||||
|
||||
/// 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 @@ pub fn wrapping_shr(self, rhs: u32) -> Self {
|
||||
|
||||
/// 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 @@ pub fn wrapping_shl(self, rhs: u32) -> Self {
|
||||
|
||||
/// 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 @@ pub fn wrapping_shr(self, rhs: u32) -> Self {
|
||||
|
||||
/// 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
|
||||
|
||||
Reference in New Issue
Block a user