@@ -749,7 +749,7 @@ Basic usage:
749749assert_eq!(" , stringify!( $SelfT) , "::MAX.checked_pow(2), None);" , $EndFeature, "
750750```" ) ,
751751 #[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
752- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
752+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
753753 #[ must_use = "this returns the result of the operation, \
754754 without modifying the original"]
755755 #[ inline]
@@ -865,7 +865,7 @@ assert_eq!(", stringify!($SelfT), "::MAX.saturating_pow(2), ", stringify!($SelfT
865865$EndFeature, "
866866```" ) ,
867867 #[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
868- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
868+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
869869 #[ must_use = "this returns the result of the operation, \
870870 without modifying the original"]
871871 #[ inline]
@@ -1159,7 +1159,7 @@ Basic usage:
11591159assert_eq!(3u8.wrapping_pow(6), 217);" , $EndFeature, "
11601160```" ) ,
11611161 #[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
1162- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1162+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
11631163 #[ must_use = "this returns the result of the operation, \
11641164 without modifying the original"]
11651165 #[ inline]
@@ -1484,7 +1484,7 @@ Basic usage:
14841484assert_eq!(3u8.overflowing_pow(6), (217, true));" , $EndFeature, "
14851485```" ) ,
14861486 #[ stable( feature = "no_panic_pow" , since = "1.34.0" ) ]
1487- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1487+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
14881488 #[ must_use = "this returns the result of the operation, \
14891489 without modifying the original"]
14901490 #[ inline]
@@ -1532,7 +1532,7 @@ Basic usage:
15321532" , $Feature, "assert_eq!(2" , stringify!( $SelfT) , ".pow(5), 32);" , $EndFeature, "
15331533```" ) ,
15341534 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1535- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1535+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
15361536 #[ must_use = "this returns the result of the operation, \
15371537 without modifying the original"]
15381538 #[ inline]
@@ -1648,7 +1648,7 @@ assert!(!10", stringify!($SelfT), ".is_power_of_two());", $EndFeature, "
16481648 // overflow cases it instead ends up returning the maximum value
16491649 // of the type, and can return 0 for 0.
16501650 #[ inline]
1651- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1651+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
16521652 const fn one_less_than_next_power_of_two( self ) -> Self {
16531653 if self <= 1 { return 0 ; }
16541654
@@ -1677,7 +1677,7 @@ Basic usage:
16771677assert_eq!(3" , stringify!( $SelfT) , ".next_power_of_two(), 4);" , $EndFeature, "
16781678```" ) ,
16791679 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1680- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1680+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
16811681 #[ inline]
16821682 #[ rustc_inherit_overflow_checks]
16831683 pub const fn next_power_of_two( self ) -> Self {
@@ -1703,7 +1703,7 @@ $EndFeature, "
17031703```" ) ,
17041704 #[ inline]
17051705 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1706- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1706+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
17071707 pub const fn checked_next_power_of_two( self ) -> Option <Self > {
17081708 self . one_less_than_next_power_of_two( ) . checked_add( 1 )
17091709 }
@@ -1728,7 +1728,7 @@ $EndFeature, "
17281728```" ) ,
17291729 #[ unstable( feature = "wrapping_next_power_of_two" , issue = "32463" ,
17301730 reason = "needs decision on wrapping behaviour" ) ]
1731- #[ rustc_const_unstable ( feature = "const_int_pow" , issue = "53718 " ) ]
1731+ #[ rustc_const_stable ( feature = "const_int_pow" , since = "1.49.0 " ) ]
17321732 pub const fn wrapping_next_power_of_two( self ) -> Self {
17331733 self . one_less_than_next_power_of_two( ) . wrapping_add( 1 )
17341734 }
0 commit comments