@@ -749,7 +749,7 @@ Basic usage:
749
749
assert_eq!(" , stringify!( $SelfT) , "::MAX.checked_pow(2), None);" , $EndFeature, "
750
750
```" ) ,
751
751
#[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
752
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
752
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
753
753
#[ must_use = "this returns the result of the operation, \
754
754
without modifying the original"]
755
755
#[ inline]
@@ -865,7 +865,7 @@ assert_eq!(", stringify!($SelfT), "::MAX.saturating_pow(2), ", stringify!($SelfT
865
865
$EndFeature, "
866
866
```" ) ,
867
867
#[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
868
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
868
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
869
869
#[ must_use = "this returns the result of the operation, \
870
870
without modifying the original"]
871
871
#[ inline]
@@ -1159,7 +1159,7 @@ Basic usage:
1159
1159
assert_eq!(3u8.wrapping_pow(6), 217);" , $EndFeature, "
1160
1160
```" ) ,
1161
1161
#[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
1162
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1162
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1163
1163
#[ must_use = "this returns the result of the operation, \
1164
1164
without modifying the original"]
1165
1165
#[ inline]
@@ -1484,7 +1484,7 @@ Basic usage:
1484
1484
assert_eq!(3u8.overflowing_pow(6), (217, true));" , $EndFeature, "
1485
1485
```" ) ,
1486
1486
#[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
1487
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1487
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1488
1488
#[ must_use = "this returns the result of the operation, \
1489
1489
without modifying the original"]
1490
1490
#[ inline]
@@ -1532,7 +1532,7 @@ Basic usage:
1532
1532
" , $Feature, "assert_eq!(2" , stringify!( $SelfT) , ".pow(5), 32);" , $EndFeature, "
1533
1533
```" ) ,
1534
1534
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1535
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1535
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1536
1536
#[ must_use = "this returns the result of the operation, \
1537
1537
without modifying the original"]
1538
1538
#[ inline]
@@ -1648,7 +1648,7 @@ assert!(!10", stringify!($SelfT), ".is_power_of_two());", $EndFeature, "
1648
1648
// overflow cases it instead ends up returning the maximum value
1649
1649
// of the type, and can return 0 for 0.
1650
1650
#[ inline]
1651
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1651
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1652
1652
const fn one_less_than_next_power_of_two( self ) -> Self {
1653
1653
if self <= 1 { return 0 ; }
1654
1654
@@ -1677,7 +1677,7 @@ Basic usage:
1677
1677
assert_eq!(3" , stringify!( $SelfT) , ".next_power_of_two(), 4);" , $EndFeature, "
1678
1678
```" ) ,
1679
1679
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1680
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1680
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1681
1681
#[ inline]
1682
1682
#[ rustc_inherit_overflow_checks]
1683
1683
pub const fn next_power_of_two( self ) -> Self {
@@ -1703,7 +1703,7 @@ $EndFeature, "
1703
1703
```" ) ,
1704
1704
#[ inline]
1705
1705
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1706
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1706
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1707
1707
pub const fn checked_next_power_of_two( self ) -> Option <Self > {
1708
1708
self . one_less_than_next_power_of_two( ) . checked_add( 1 )
1709
1709
}
@@ -1728,7 +1728,7 @@ $EndFeature, "
1728
1728
```" ) ,
1729
1729
#[ unstable( feature = "wrapping_next_power_of_two" , issue = "32463" ,
1730
1730
reason = "needs decision on wrapping behaviour" ) ]
1731
- #[ rustc_const_stable( feature = "const_int_pow" , since = "1.49 .0" ) ]
1731
+ #[ rustc_const_stable( feature = "const_int_pow" , since = "1.50 .0" ) ]
1732
1732
pub const fn wrapping_next_power_of_two( self ) -> Self {
1733
1733
self . one_less_than_next_power_of_two( ) . wrapping_add( 1 )
1734
1734
}
0 commit comments