@@ -994,7 +994,7 @@ assert_eq!(", stringify!($SelfT), "::max_value().wrapping_add(2), ", stringify!(
994
994
$EndFeature, "
995
995
```" ) ,
996
996
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
997
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
997
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
998
998
#[ inline]
999
999
pub const fn wrapping_add( self , rhs: Self ) -> Self {
1000
1000
unsafe {
@@ -1018,7 +1018,7 @@ stringify!($SelfT), "::max_value());",
1018
1018
$EndFeature, "
1019
1019
```" ) ,
1020
1020
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1021
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
1021
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
1022
1022
#[ inline]
1023
1023
pub const fn wrapping_sub( self , rhs: Self ) -> Self {
1024
1024
unsafe {
@@ -1041,7 +1041,7 @@ assert_eq!(11i8.wrapping_mul(12), -124);",
1041
1041
$EndFeature, "
1042
1042
```" ) ,
1043
1043
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1044
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
1044
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
1045
1045
#[ inline]
1046
1046
pub const fn wrapping_mul( self , rhs: Self ) -> Self {
1047
1047
unsafe {
@@ -1205,7 +1205,7 @@ assert_eq!((-1", stringify!($SelfT), ").wrapping_shl(128), -1);",
1205
1205
$EndFeature, "
1206
1206
```" ) ,
1207
1207
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
1208
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
1208
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
1209
1209
#[ inline]
1210
1210
pub const fn wrapping_shl( self , rhs: u32 ) -> Self {
1211
1211
unsafe {
@@ -1233,7 +1233,7 @@ assert_eq!((-128i16).wrapping_shr(64), -128);",
1233
1233
$EndFeature, "
1234
1234
```" ) ,
1235
1235
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
1236
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
1236
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
1237
1237
#[ inline]
1238
1238
pub const fn wrapping_shr( self , rhs: u32 ) -> Self {
1239
1239
unsafe {
@@ -2884,7 +2884,7 @@ assert_eq!(200", stringify!($SelfT), ".wrapping_add(", stringify!($SelfT), "::ma
2884
2884
$EndFeature, "
2885
2885
```" ) ,
2886
2886
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2887
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
2887
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
2888
2888
#[ inline]
2889
2889
pub const fn wrapping_add( self , rhs: Self ) -> Self {
2890
2890
unsafe {
@@ -2907,7 +2907,7 @@ assert_eq!(100", stringify!($SelfT), ".wrapping_sub(", stringify!($SelfT), "::ma
2907
2907
$EndFeature, "
2908
2908
```" ) ,
2909
2909
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2910
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
2910
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
2911
2911
#[ inline]
2912
2912
pub const fn wrapping_sub( self , rhs: Self ) -> Self {
2913
2913
unsafe {
@@ -2931,7 +2931,7 @@ $EndFeature, "
2931
2931
/// assert_eq!(25u8.wrapping_mul(12), 44);
2932
2932
/// ```
2933
2933
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2934
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
2934
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
2935
2935
#[ inline]
2936
2936
pub const fn wrapping_mul( self , rhs: Self ) -> Self {
2937
2937
unsafe {
@@ -3081,7 +3081,7 @@ Basic usage:
3081
3081
assert_eq!(1" , stringify!( $SelfT) , ".wrapping_shl(128), 1);" , $EndFeature, "
3082
3082
```" ) ,
3083
3083
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
3084
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
3084
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
3085
3085
#[ inline]
3086
3086
pub const fn wrapping_shl( self , rhs: u32 ) -> Self {
3087
3087
unsafe {
@@ -3111,7 +3111,7 @@ Basic usage:
3111
3111
assert_eq!(128" , stringify!( $SelfT) , ".wrapping_shr(128), 128);" , $EndFeature, "
3112
3112
```" ) ,
3113
3113
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
3114
- #[ rustc_const_unstable( feature = "const_int_wrapping" ) ]
3114
+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_wrapping" ) ) ]
3115
3115
#[ inline]
3116
3116
pub const fn wrapping_shr( self , rhs: u32 ) -> Self {
3117
3117
unsafe {
0 commit comments