@@ -269,7 +269,6 @@ $EndFeature, "
269269```
270270" ) ,
271271 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
272- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
273272 #[ inline]
274273 pub const fn count_ones( self ) -> u32 { ( self as $UnsignedT) . count_ones( ) }
275274 }
@@ -285,7 +284,6 @@ Basic usage:
285284" , $Feature, "assert_eq!(" , stringify!( $SelfT) , "::max_value().count_zeros(), 1);" , $EndFeature, "
286285```" ) ,
287286 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
288- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
289287 #[ inline]
290288 pub const fn count_zeros( self ) -> u32 {
291289 ( !self ) . count_ones( )
@@ -306,7 +304,6 @@ assert_eq!(n.leading_zeros(), 0);",
306304$EndFeature, "
307305```" ) ,
308306 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
309- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
310307 #[ inline]
311308 pub const fn leading_zeros( self ) -> u32 {
312309 ( self as $UnsignedT) . leading_zeros( )
@@ -327,7 +324,6 @@ assert_eq!(n.trailing_zeros(), 2);",
327324$EndFeature, "
328325```" ) ,
329326 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
330- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
331327 #[ inline]
332328 pub const fn trailing_zeros( self ) -> u32 {
333329 ( self as $UnsignedT) . trailing_zeros( )
@@ -399,7 +395,6 @@ assert_eq!(n.rotate_right(", $rot, "), m);
399395 /// assert_eq!(m, 21760);
400396 /// ```
401397 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
402- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
403398 #[ inline]
404399 pub const fn swap_bytes( self ) -> Self {
405400 ( self as $UnsignedT) . swap_bytes( ) as Self
@@ -451,7 +446,6 @@ if cfg!(target_endian = \"big\") {
451446$EndFeature, "
452447```" ) ,
453448 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
454- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
455449 #[ inline]
456450 pub const fn from_be( x: Self ) -> Self {
457451 #[ cfg( target_endian = "big" ) ]
@@ -485,7 +479,6 @@ if cfg!(target_endian = \"little\") {
485479$EndFeature, "
486480```" ) ,
487481 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
488- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
489482 #[ inline]
490483 pub const fn from_le( x: Self ) -> Self {
491484 #[ cfg( target_endian = "little" ) ]
@@ -519,7 +512,6 @@ if cfg!(target_endian = \"big\") {
519512$EndFeature, "
520513```" ) ,
521514 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
522- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
523515 #[ inline]
524516 pub const fn to_be( self ) -> Self { // or not to be?
525517 #[ cfg( target_endian = "big" ) ]
@@ -553,7 +545,6 @@ if cfg!(target_endian = \"little\") {
553545$EndFeature, "
554546```" ) ,
555547 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
556- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
557548 #[ inline]
558549 pub const fn to_le( self ) -> Self {
559550 #[ cfg( target_endian = "little" ) ]
@@ -2146,7 +2137,6 @@ Basic usage:
21462137assert_eq!(n.count_ones(), 3);" , $EndFeature, "
21472138```" ) ,
21482139 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2149- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
21502140 #[ inline]
21512141 pub const fn count_ones( self ) -> u32 {
21522142 unsafe { intrinsics:: ctpop( self as $ActualT) as u32 }
@@ -2164,7 +2154,6 @@ Basic usage:
21642154" , $Feature, "assert_eq!(" , stringify!( $SelfT) , "::max_value().count_zeros(), 0);" , $EndFeature, "
21652155```" ) ,
21662156 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2167- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
21682157 #[ inline]
21692158 pub const fn count_zeros( self ) -> u32 {
21702159 ( !self ) . count_ones( )
@@ -2184,7 +2173,6 @@ Basic usage:
21842173assert_eq!(n.leading_zeros(), 2);" , $EndFeature, "
21852174```" ) ,
21862175 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2187- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
21882176 #[ inline]
21892177 pub const fn leading_zeros( self ) -> u32 {
21902178 unsafe { intrinsics:: ctlz( self as $ActualT) as u32 }
@@ -2205,7 +2193,6 @@ Basic usage:
22052193assert_eq!(n.trailing_zeros(), 3);" , $EndFeature, "
22062194```" ) ,
22072195 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2208- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
22092196 #[ inline]
22102197 pub const fn trailing_zeros( self ) -> u32 {
22112198 unsafe { uint_cttz_call!( self , $BITS) as u32 }
@@ -2282,7 +2269,6 @@ assert_eq!(n.rotate_right(", $rot, "), m);
22822269 /// assert_eq!(m, 21760);
22832270 /// ```
22842271 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2285- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
22862272 #[ inline]
22872273 pub const fn swap_bytes( self ) -> Self {
22882274 unsafe { intrinsics:: bswap( self as $ActualT) as Self }
@@ -2334,7 +2320,6 @@ if cfg!(target_endian = \"big\") {
23342320}" , $EndFeature, "
23352321```" ) ,
23362322 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2337- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
23382323 #[ inline]
23392324 pub const fn from_be( x: Self ) -> Self {
23402325 #[ cfg( target_endian = "big" ) ]
@@ -2368,7 +2353,6 @@ if cfg!(target_endian = \"little\") {
23682353}" , $EndFeature, "
23692354```" ) ,
23702355 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2371- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
23722356 #[ inline]
23732357 pub const fn from_le( x: Self ) -> Self {
23742358 #[ cfg( target_endian = "little" ) ]
@@ -2402,7 +2386,6 @@ if cfg!(target_endian = \"big\") {
24022386}" , $EndFeature, "
24032387```" ) ,
24042388 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2405- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
24062389 #[ inline]
24072390 pub const fn to_be( self ) -> Self { // or not to be?
24082391 #[ cfg( target_endian = "big" ) ]
@@ -2436,7 +2419,6 @@ if cfg!(target_endian = \"little\") {
24362419}" , $EndFeature, "
24372420```" ) ,
24382421 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2439- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
24402422 #[ inline]
24412423 pub const fn to_le( self ) -> Self {
24422424 #[ cfg( target_endian = "little" ) ]
0 commit comments