@@ -994,7 +994,7 @@ assert_eq!(", stringify!($SelfT), "::max_value().wrapping_add(2), ", stringify!(
994994$EndFeature, "
995995```" ) ,
996996 #[ 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" ) ) ]
998998 #[ inline]
999999 pub const fn wrapping_add( self , rhs: Self ) -> Self {
10001000 unsafe {
@@ -1018,7 +1018,7 @@ stringify!($SelfT), "::max_value());",
10181018$EndFeature, "
10191019```" ) ,
10201020 #[ 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" ) ) ]
10221022 #[ inline]
10231023 pub const fn wrapping_sub( self , rhs: Self ) -> Self {
10241024 unsafe {
@@ -1041,7 +1041,7 @@ assert_eq!(11i8.wrapping_mul(12), -124);",
10411041$EndFeature, "
10421042```" ) ,
10431043 #[ 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" ) ) ]
10451045 #[ inline]
10461046 pub const fn wrapping_mul( self , rhs: Self ) -> Self {
10471047 unsafe {
@@ -1205,7 +1205,7 @@ assert_eq!((-1", stringify!($SelfT), ").wrapping_shl(128), -1);",
12051205$EndFeature, "
12061206```" ) ,
12071207 #[ 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" ) ) ]
12091209 #[ inline]
12101210 pub const fn wrapping_shl( self , rhs: u32 ) -> Self {
12111211 unsafe {
@@ -1233,7 +1233,7 @@ assert_eq!((-128i16).wrapping_shr(64), -128);",
12331233$EndFeature, "
12341234```" ) ,
12351235 #[ 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" ) ) ]
12371237 #[ inline]
12381238 pub const fn wrapping_shr( self , rhs: u32 ) -> Self {
12391239 unsafe {
@@ -2884,7 +2884,7 @@ assert_eq!(200", stringify!($SelfT), ".wrapping_add(", stringify!($SelfT), "::ma
28842884$EndFeature, "
28852885```" ) ,
28862886 #[ 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" ) ) ]
28882888 #[ inline]
28892889 pub const fn wrapping_add( self , rhs: Self ) -> Self {
28902890 unsafe {
@@ -2907,7 +2907,7 @@ assert_eq!(100", stringify!($SelfT), ".wrapping_sub(", stringify!($SelfT), "::ma
29072907$EndFeature, "
29082908```" ) ,
29092909 #[ 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" ) ) ]
29112911 #[ inline]
29122912 pub const fn wrapping_sub( self , rhs: Self ) -> Self {
29132913 unsafe {
@@ -2931,7 +2931,7 @@ $EndFeature, "
29312931 /// assert_eq!(25u8.wrapping_mul(12), 44);
29322932 /// ```
29332933 #[ 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" ) ) ]
29352935 #[ inline]
29362936 pub const fn wrapping_mul( self , rhs: Self ) -> Self {
29372937 unsafe {
@@ -3081,7 +3081,7 @@ Basic usage:
30813081assert_eq!(1" , stringify!( $SelfT) , ".wrapping_shl(128), 1);" , $EndFeature, "
30823082```" ) ,
30833083 #[ 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" ) ) ]
30853085 #[ inline]
30863086 pub const fn wrapping_shl( self , rhs: u32 ) -> Self {
30873087 unsafe {
@@ -3111,7 +3111,7 @@ Basic usage:
31113111assert_eq!(128" , stringify!( $SelfT) , ".wrapping_shr(128), 128);" , $EndFeature, "
31123112```" ) ,
31133113 #[ 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" ) ) ]
31153115 #[ inline]
31163116 pub const fn wrapping_shr( self , rhs: u32 ) -> Self {
31173117 unsafe {
0 commit comments