@@ -269,7 +269,6 @@ $EndFeature, "
269
269
```
270
270
" ) ,
271
271
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
272
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
273
272
#[ inline]
274
273
pub const fn count_ones( self ) -> u32 { ( self as $UnsignedT) . count_ones( ) }
275
274
}
@@ -285,7 +284,6 @@ Basic usage:
285
284
" , $Feature, "assert_eq!(" , stringify!( $SelfT) , "::max_value().count_zeros(), 1);" , $EndFeature, "
286
285
```" ) ,
287
286
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
288
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
289
287
#[ inline]
290
288
pub const fn count_zeros( self ) -> u32 {
291
289
( !self ) . count_ones( )
@@ -306,7 +304,6 @@ assert_eq!(n.leading_zeros(), 0);",
306
304
$EndFeature, "
307
305
```" ) ,
308
306
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
309
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
310
307
#[ inline]
311
308
pub const fn leading_zeros( self ) -> u32 {
312
309
( self as $UnsignedT) . leading_zeros( )
@@ -327,7 +324,6 @@ assert_eq!(n.trailing_zeros(), 2);",
327
324
$EndFeature, "
328
325
```" ) ,
329
326
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
330
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
331
327
#[ inline]
332
328
pub const fn trailing_zeros( self ) -> u32 {
333
329
( self as $UnsignedT) . trailing_zeros( )
@@ -399,7 +395,6 @@ assert_eq!(n.rotate_right(", $rot, "), m);
399
395
/// assert_eq!(m, 21760);
400
396
/// ```
401
397
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
402
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
403
398
#[ inline]
404
399
pub const fn swap_bytes( self ) -> Self {
405
400
( self as $UnsignedT) . swap_bytes( ) as Self
@@ -451,7 +446,6 @@ if cfg!(target_endian = \"big\") {
451
446
$EndFeature, "
452
447
```" ) ,
453
448
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
454
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
455
449
#[ inline]
456
450
pub const fn from_be( x: Self ) -> Self {
457
451
#[ cfg( target_endian = "big" ) ]
@@ -485,7 +479,6 @@ if cfg!(target_endian = \"little\") {
485
479
$EndFeature, "
486
480
```" ) ,
487
481
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
488
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
489
482
#[ inline]
490
483
pub const fn from_le( x: Self ) -> Self {
491
484
#[ cfg( target_endian = "little" ) ]
@@ -519,7 +512,6 @@ if cfg!(target_endian = \"big\") {
519
512
$EndFeature, "
520
513
```" ) ,
521
514
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
522
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
523
515
#[ inline]
524
516
pub const fn to_be( self ) -> Self { // or not to be?
525
517
#[ cfg( target_endian = "big" ) ]
@@ -553,7 +545,6 @@ if cfg!(target_endian = \"little\") {
553
545
$EndFeature, "
554
546
```" ) ,
555
547
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
556
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
557
548
#[ inline]
558
549
pub const fn to_le( self ) -> Self {
559
550
#[ cfg( target_endian = "little" ) ]
@@ -2146,7 +2137,6 @@ Basic usage:
2146
2137
assert_eq!(n.count_ones(), 3);" , $EndFeature, "
2147
2138
```" ) ,
2148
2139
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2149
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2150
2140
#[ inline]
2151
2141
pub const fn count_ones( self ) -> u32 {
2152
2142
unsafe { intrinsics:: ctpop( self as $ActualT) as u32 }
@@ -2164,7 +2154,6 @@ Basic usage:
2164
2154
" , $Feature, "assert_eq!(" , stringify!( $SelfT) , "::max_value().count_zeros(), 0);" , $EndFeature, "
2165
2155
```" ) ,
2166
2156
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2167
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2168
2157
#[ inline]
2169
2158
pub const fn count_zeros( self ) -> u32 {
2170
2159
( !self ) . count_ones( )
@@ -2184,7 +2173,6 @@ Basic usage:
2184
2173
assert_eq!(n.leading_zeros(), 2);" , $EndFeature, "
2185
2174
```" ) ,
2186
2175
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2187
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2188
2176
#[ inline]
2189
2177
pub const fn leading_zeros( self ) -> u32 {
2190
2178
unsafe { intrinsics:: ctlz( self as $ActualT) as u32 }
@@ -2205,7 +2193,6 @@ Basic usage:
2205
2193
assert_eq!(n.trailing_zeros(), 3);" , $EndFeature, "
2206
2194
```" ) ,
2207
2195
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2208
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2209
2196
#[ inline]
2210
2197
pub const fn trailing_zeros( self ) -> u32 {
2211
2198
unsafe { uint_cttz_call!( self , $BITS) as u32 }
@@ -2282,7 +2269,6 @@ assert_eq!(n.rotate_right(", $rot, "), m);
2282
2269
/// assert_eq!(m, 21760);
2283
2270
/// ```
2284
2271
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2285
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2286
2272
#[ inline]
2287
2273
pub const fn swap_bytes( self ) -> Self {
2288
2274
unsafe { intrinsics:: bswap( self as $ActualT) as Self }
@@ -2334,7 +2320,6 @@ if cfg!(target_endian = \"big\") {
2334
2320
}" , $EndFeature, "
2335
2321
```" ) ,
2336
2322
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2337
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2338
2323
#[ inline]
2339
2324
pub const fn from_be( x: Self ) -> Self {
2340
2325
#[ cfg( target_endian = "big" ) ]
@@ -2368,7 +2353,6 @@ if cfg!(target_endian = \"little\") {
2368
2353
}" , $EndFeature, "
2369
2354
```" ) ,
2370
2355
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2371
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2372
2356
#[ inline]
2373
2357
pub const fn from_le( x: Self ) -> Self {
2374
2358
#[ cfg( target_endian = "little" ) ]
@@ -2402,7 +2386,6 @@ if cfg!(target_endian = \"big\") {
2402
2386
}" , $EndFeature, "
2403
2387
```" ) ,
2404
2388
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2405
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2406
2389
#[ inline]
2407
2390
pub const fn to_be( self ) -> Self { // or not to be?
2408
2391
#[ cfg( target_endian = "big" ) ]
@@ -2436,7 +2419,6 @@ if cfg!(target_endian = \"little\") {
2436
2419
}" , $EndFeature, "
2437
2420
```" ) ,
2438
2421
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2439
- #[ rustc_const_unstable( feature = "const_int_ops" ) ]
2440
2422
#[ inline]
2441
2423
pub const fn to_le( self ) -> Self {
2442
2424
#[ cfg( target_endian = "little" ) ]
0 commit comments