@@ -847,13 +847,12 @@ overflow occurred.
847
847
Basic usage:
848
848
849
849
```
850
- #![feature(no_panic_pow)]
851
850
" , $Feature, "assert_eq!(8" , stringify!( $SelfT) , ".checked_pow(2), Some(64));
852
851
assert_eq!(" , stringify!( $SelfT) , "::max_value().checked_pow(2), None);" ,
853
852
$EndFeature, "
854
853
```" ) ,
855
854
856
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
855
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
857
856
#[ inline]
858
857
pub fn checked_pow( self , mut exp: u32 ) -> Option <Self > {
859
858
let mut base = self ;
@@ -966,15 +965,14 @@ saturating at the numeric bounds instead of overflowing.
966
965
Basic usage:
967
966
968
967
```
969
- #![feature(no_panic_pow)]
970
968
" , $Feature, "use std::" , stringify!( $SelfT) , ";
971
969
972
970
assert_eq!((-4" , stringify!( $SelfT) , ").saturating_pow(3), -64);
973
971
assert_eq!(" , stringify!( $SelfT) , "::MIN.saturating_pow(2), " , stringify!( $SelfT) , "::MAX);
974
972
assert_eq!(" , stringify!( $SelfT) , "::MIN.saturating_pow(3), " , stringify!( $SelfT) , "::MIN);" ,
975
973
$EndFeature, "
976
974
```" ) ,
977
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
975
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
978
976
#[ inline]
979
977
pub fn saturating_pow( self , exp: u32 ) -> Self {
980
978
match self . checked_pow( exp) {
@@ -1297,13 +1295,12 @@ wrapping around at the boundary of the type.
1297
1295
Basic usage:
1298
1296
1299
1297
```
1300
- #![feature(no_panic_pow)]
1301
1298
" , $Feature, "assert_eq!(3" , stringify!( $SelfT) , ".wrapping_pow(4), 81);
1302
1299
assert_eq!(3i8.wrapping_pow(5), -13);
1303
1300
assert_eq!(3i8.wrapping_pow(6), -39);" ,
1304
1301
$EndFeature, "
1305
1302
```" ) ,
1306
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
1303
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
1307
1304
#[ inline]
1308
1305
pub fn wrapping_pow( self , mut exp: u32 ) -> Self {
1309
1306
let mut base = self ;
@@ -1669,12 +1666,11 @@ whether an overflow happened.
1669
1666
Basic usage:
1670
1667
1671
1668
```
1672
- #![feature(no_panic_pow)]
1673
1669
" , $Feature, "assert_eq!(3" , stringify!( $SelfT) , ".overflowing_pow(4), (81, false));
1674
1670
assert_eq!(3i8.overflowing_pow(5), (-13, true));" ,
1675
1671
$EndFeature, "
1676
1672
```" ) ,
1677
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
1673
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
1678
1674
#[ inline]
1679
1675
pub fn overflowing_pow( self , mut exp: u32 ) -> ( Self , bool ) {
1680
1676
let mut base = self ;
@@ -2789,11 +2785,10 @@ overflow occurred.
2789
2785
Basic usage:
2790
2786
2791
2787
```
2792
- #![feature(no_panic_pow)]
2793
2788
" , $Feature, "assert_eq!(2" , stringify!( $SelfT) , ".checked_pow(5), Some(32));
2794
2789
assert_eq!(" , stringify!( $SelfT) , "::max_value().checked_pow(2), None);" , $EndFeature, "
2795
2790
```" ) ,
2796
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
2791
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
2797
2792
#[ inline]
2798
2793
pub fn checked_pow( self , mut exp: u32 ) -> Option <Self > {
2799
2794
let mut base = self ;
@@ -2893,14 +2888,13 @@ saturating at the numeric bounds instead of overflowing.
2893
2888
Basic usage:
2894
2889
2895
2890
```
2896
- #![feature(no_panic_pow)]
2897
2891
" , $Feature, "use std::" , stringify!( $SelfT) , ";
2898
2892
2899
2893
assert_eq!(4" , stringify!( $SelfT) , ".saturating_pow(3), 64);
2900
2894
assert_eq!(" , stringify!( $SelfT) , "::MAX.saturating_pow(2), " , stringify!( $SelfT) , "::MAX);" ,
2901
2895
$EndFeature, "
2902
2896
```" ) ,
2903
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
2897
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
2904
2898
#[ inline]
2905
2899
pub fn saturating_pow( self , exp: u32 ) -> Self {
2906
2900
match self . checked_pow( exp) {
@@ -3178,11 +3172,10 @@ wrapping around at the boundary of the type.
3178
3172
Basic usage:
3179
3173
3180
3174
```
3181
- #![feature(no_panic_pow)]
3182
3175
" , $Feature, "assert_eq!(3" , stringify!( $SelfT) , ".wrapping_pow(5), 243);
3183
3176
assert_eq!(3u8.wrapping_pow(6), 217);" , $EndFeature, "
3184
3177
```" ) ,
3185
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
3178
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
3186
3179
#[ inline]
3187
3180
pub fn wrapping_pow( self , mut exp: u32 ) -> Self {
3188
3181
let mut base = self ;
@@ -3497,11 +3490,10 @@ whether an overflow happened.
3497
3490
Basic usage:
3498
3491
3499
3492
```
3500
- #![feature(no_panic_pow)]
3501
3493
" , $Feature, "assert_eq!(3" , stringify!( $SelfT) , ".overflowing_pow(5), (243, false));
3502
3494
assert_eq!(3u8.overflowing_pow(6), (217, true));" , $EndFeature, "
3503
3495
```" ) ,
3504
- #[ unstable ( feature = "no_panic_pow" , issue = "48320 " ) ]
3496
+ #[ stable ( feature = "no_panic_pow" , since = "1.34.0 " ) ]
3505
3497
#[ inline]
3506
3498
pub fn overflowing_pow( self , mut exp: u32 ) -> ( Self , bool ) {
3507
3499
let mut base = self ;
0 commit comments