@@ -357,7 +357,7 @@ let m = ", $rot_result, ";
357357assert_eq!(n.rotate_left(" , $rot, "), m);
358358```" ) ,
359359 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
360- #[ rustc_const_unstable( feature = "const_int_rotate" ) ]
360+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_rotate" ) ) ]
361361 #[ inline]
362362 pub const fn rotate_left( self , n: u32 ) -> Self {
363363 ( self as $UnsignedT) . rotate_left( n) as Self
@@ -382,7 +382,7 @@ let m = ", $rot_op, ";
382382assert_eq!(n.rotate_right(" , $rot, "), m);
383383```" ) ,
384384 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
385- #[ rustc_const_unstable( feature = "const_int_rotate" ) ]
385+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_rotate" ) ) ]
386386 #[ inline]
387387 pub const fn rotate_right( self , n: u32 ) -> Self {
388388 ( self as $UnsignedT) . rotate_right( n) as Self
@@ -2310,7 +2310,7 @@ let m = ", $rot_result, ";
23102310assert_eq!(n.rotate_left(" , $rot, "), m);
23112311```" ) ,
23122312 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2313- #[ rustc_const_unstable( feature = "const_int_rotate" ) ]
2313+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_rotate" ) ) ]
23142314 #[ inline]
23152315 pub const fn rotate_left( self , n: u32 ) -> Self {
23162316 unsafe { intrinsics:: rotate_left( self , n as $SelfT) }
@@ -2335,7 +2335,7 @@ let m = ", $rot_op, ";
23352335assert_eq!(n.rotate_right(" , $rot, "), m);
23362336```" ) ,
23372337 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2338- #[ rustc_const_unstable( feature = "const_int_rotate" ) ]
2338+ #[ cfg_attr ( stage0 , rustc_const_unstable( feature = "const_int_rotate" ) ) ]
23392339 #[ inline]
23402340 pub const fn rotate_right( self , n: u32 ) -> Self {
23412341 unsafe { intrinsics:: rotate_right( self , n as $SelfT) }
0 commit comments