@@ -469,17 +469,16 @@ macro_rules! int_impl {
469
469
/// # Examples
470
470
///
471
471
/// ```
472
- /// #![feature(strict_overflow_ops)]
473
472
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).strict_add(1), " , stringify!( $SelfT) , "::MAX - 1);" ) ]
474
473
/// ```
475
474
///
476
475
/// The following panics because of overflow:
477
476
///
478
477
/// ```should_panic
479
- /// #![feature(strict_overflow_ops)]
480
478
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MAX - 2).strict_add(3);" ) ]
481
479
/// ```
482
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
480
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
481
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
483
482
#[ must_use = "this returns the result of the operation, \
484
483
without modifying the original"]
485
484
#[ inline]
@@ -560,17 +559,16 @@ macro_rules! int_impl {
560
559
/// # Examples
561
560
///
562
561
/// ```
563
- /// #![feature(strict_overflow_ops)]
564
562
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".strict_add_unsigned(2), 3);" ) ]
565
563
/// ```
566
564
///
567
565
/// The following panics because of overflow:
568
566
///
569
567
/// ```should_panic
570
- /// #![feature(strict_overflow_ops)]
571
568
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MAX - 2).strict_add_unsigned(3);" ) ]
572
569
/// ```
573
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
570
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
571
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
574
572
#[ must_use = "this returns the result of the operation, \
575
573
without modifying the original"]
576
574
#[ inline]
@@ -611,17 +609,16 @@ macro_rules! int_impl {
611
609
/// # Examples
612
610
///
613
611
/// ```
614
- /// #![feature(strict_overflow_ops)]
615
612
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 2).strict_sub(1), " , stringify!( $SelfT) , "::MIN + 1);" ) ]
616
613
/// ```
617
614
///
618
615
/// The following panics because of overflow:
619
616
///
620
617
/// ```should_panic
621
- /// #![feature(strict_overflow_ops)]
622
618
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MIN + 2).strict_sub(3);" ) ]
623
619
/// ```
624
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
620
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
621
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
625
622
#[ must_use = "this returns the result of the operation, \
626
623
without modifying the original"]
627
624
#[ inline]
@@ -702,17 +699,16 @@ macro_rules! int_impl {
702
699
/// # Examples
703
700
///
704
701
/// ```
705
- /// #![feature(strict_overflow_ops)]
706
702
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".strict_sub_unsigned(2), -1);" ) ]
707
703
/// ```
708
704
///
709
705
/// The following panics because of overflow:
710
706
///
711
707
/// ```should_panic
712
- /// #![feature(strict_overflow_ops)]
713
708
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MIN + 2).strict_sub_unsigned(3);" ) ]
714
709
/// ```
715
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
710
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
711
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
716
712
#[ must_use = "this returns the result of the operation, \
717
713
without modifying the original"]
718
714
#[ inline]
@@ -753,17 +749,16 @@ macro_rules! int_impl {
753
749
/// # Examples
754
750
///
755
751
/// ```
756
- /// #![feature(strict_overflow_ops)]
757
752
#[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MAX.strict_mul(1), " , stringify!( $SelfT) , "::MAX);" ) ]
758
753
/// ```
759
754
///
760
755
/// The following panics because of overflow:
761
756
///
762
757
/// ``` should_panic
763
- /// #![feature(strict_overflow_ops)]
764
758
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MAX.strict_mul(2);" ) ]
765
759
/// ```
766
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
760
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
761
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
767
762
#[ must_use = "this returns the result of the operation, \
768
763
without modifying the original"]
769
764
#[ inline]
@@ -855,24 +850,22 @@ macro_rules! int_impl {
855
850
/// # Examples
856
851
///
857
852
/// ```
858
- /// #![feature(strict_overflow_ops)]
859
853
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 1).strict_div(-1), " , stringify!( $Max) , ");" ) ]
860
854
/// ```
861
855
///
862
856
/// The following panics because of overflow:
863
857
///
864
858
/// ```should_panic
865
- /// #![feature(strict_overflow_ops)]
866
859
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_div(-1);" ) ]
867
860
/// ```
868
861
///
869
862
/// The following panics because of division by zero:
870
863
///
871
864
/// ```should_panic
872
- /// #![feature(strict_overflow_ops)]
873
865
#[ doc = concat!( "let _ = (1" , stringify!( $SelfT) , ").strict_div(0);" ) ]
874
866
/// ```
875
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
867
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
868
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
876
869
#[ must_use = "this returns the result of the operation, \
877
870
without modifying the original"]
878
871
#[ inline]
@@ -924,24 +917,22 @@ macro_rules! int_impl {
924
917
/// # Examples
925
918
///
926
919
/// ```
927
- /// #![feature(strict_overflow_ops)]
928
920
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 1).strict_div_euclid(-1), " , stringify!( $Max) , ");" ) ]
929
921
/// ```
930
922
///
931
923
/// The following panics because of overflow:
932
924
///
933
925
/// ```should_panic
934
- /// #![feature(strict_overflow_ops)]
935
926
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_div_euclid(-1);" ) ]
936
927
/// ```
937
928
///
938
929
/// The following panics because of division by zero:
939
930
///
940
931
/// ```should_panic
941
- /// #![feature(strict_overflow_ops)]
942
932
#[ doc = concat!( "let _ = (1" , stringify!( $SelfT) , ").strict_div_euclid(0);" ) ]
943
933
/// ```
944
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
934
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
935
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
945
936
#[ must_use = "this returns the result of the operation, \
946
937
without modifying the original"]
947
938
#[ inline]
@@ -1092,24 +1083,22 @@ macro_rules! int_impl {
1092
1083
/// # Examples
1093
1084
///
1094
1085
/// ```
1095
- /// #![feature(strict_overflow_ops)]
1096
1086
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_rem(2), 1);" ) ]
1097
1087
/// ```
1098
1088
///
1099
1089
/// The following panics because of division by zero:
1100
1090
///
1101
1091
/// ```should_panic
1102
- /// #![feature(strict_overflow_ops)]
1103
1092
#[ doc = concat!( "let _ = 5" , stringify!( $SelfT) , ".strict_rem(0);" ) ]
1104
1093
/// ```
1105
1094
///
1106
1095
/// The following panics because of overflow:
1107
1096
///
1108
1097
/// ```should_panic
1109
- /// #![feature(strict_overflow_ops)]
1110
1098
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_rem(-1);" ) ]
1111
1099
/// ```
1112
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1100
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1101
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1113
1102
#[ must_use = "this returns the result of the operation, \
1114
1103
without modifying the original"]
1115
1104
#[ inline]
@@ -1160,24 +1149,22 @@ macro_rules! int_impl {
1160
1149
/// # Examples
1161
1150
///
1162
1151
/// ```
1163
- /// #![feature(strict_overflow_ops)]
1164
1152
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_rem_euclid(2), 1);" ) ]
1165
1153
/// ```
1166
1154
///
1167
1155
/// The following panics because of division by zero:
1168
1156
///
1169
1157
/// ```should_panic
1170
- /// #![feature(strict_overflow_ops)]
1171
1158
#[ doc = concat!( "let _ = 5" , stringify!( $SelfT) , ".strict_rem_euclid(0);" ) ]
1172
1159
/// ```
1173
1160
///
1174
1161
/// The following panics because of overflow:
1175
1162
///
1176
1163
/// ```should_panic
1177
- /// #![feature(strict_overflow_ops)]
1178
1164
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_rem_euclid(-1);" ) ]
1179
1165
/// ```
1180
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1166
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1167
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1181
1168
#[ must_use = "this returns the result of the operation, \
1182
1169
without modifying the original"]
1183
1170
#[ inline]
@@ -1249,17 +1236,16 @@ macro_rules! int_impl {
1249
1236
/// # Examples
1250
1237
///
1251
1238
/// ```
1252
- /// #![feature(strict_overflow_ops)]
1253
1239
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_neg(), -5);" ) ]
1254
1240
/// ```
1255
1241
///
1256
1242
/// The following panics because of overflow:
1257
1243
///
1258
1244
/// ```should_panic
1259
- /// #![feature(strict_overflow_ops)]
1260
1245
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_neg();" ) ]
1261
1246
///
1262
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1247
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1248
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1263
1249
#[ must_use = "this returns the result of the operation, \
1264
1250
without modifying the original"]
1265
1251
#[ inline]
@@ -1306,17 +1292,16 @@ macro_rules! int_impl {
1306
1292
/// # Examples
1307
1293
///
1308
1294
/// ```
1309
- /// #![feature(strict_overflow_ops)]
1310
1295
#[ doc = concat!( "assert_eq!(0x1" , stringify!( $SelfT) , ".strict_shl(4), 0x10);" ) ]
1311
1296
/// ```
1312
1297
///
1313
1298
/// The following panics because of overflow:
1314
1299
///
1315
1300
/// ```should_panic
1316
- /// #![feature(strict_overflow_ops)]
1317
1301
#[ doc = concat!( "let _ = 0x1" , stringify!( $SelfT) , ".strict_shl(129);" ) ]
1318
1302
/// ```
1319
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1303
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1304
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1320
1305
#[ must_use = "this returns the result of the operation, \
1321
1306
without modifying the original"]
1322
1307
#[ inline]
@@ -1422,17 +1407,16 @@ macro_rules! int_impl {
1422
1407
/// # Examples
1423
1408
///
1424
1409
/// ```
1425
- /// #![feature(strict_overflow_ops)]
1426
1410
#[ doc = concat!( "assert_eq!(0x10" , stringify!( $SelfT) , ".strict_shr(4), 0x1);" ) ]
1427
1411
/// ```
1428
1412
///
1429
1413
/// The following panics because of overflow:
1430
1414
///
1431
1415
/// ```should_panic
1432
- /// #![feature(strict_overflow_ops)]
1433
1416
#[ doc = concat!( "let _ = 0x10" , stringify!( $SelfT) , ".strict_shr(128);" ) ]
1434
1417
/// ```
1435
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1418
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1419
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1436
1420
#[ must_use = "this returns the result of the operation, \
1437
1421
without modifying the original"]
1438
1422
#[ inline]
@@ -1542,17 +1526,16 @@ macro_rules! int_impl {
1542
1526
/// # Examples
1543
1527
///
1544
1528
/// ```
1545
- /// #![feature(strict_overflow_ops)]
1546
1529
#[ doc = concat!( "assert_eq!((-5" , stringify!( $SelfT) , ").strict_abs(), 5);" ) ]
1547
1530
/// ```
1548
1531
///
1549
1532
/// The following panics because of overflow:
1550
1533
///
1551
1534
/// ```should_panic
1552
- /// #![feature(strict_overflow_ops)]
1553
1535
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_abs();" ) ]
1554
1536
/// ```
1555
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1537
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1538
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1556
1539
#[ must_use = "this returns the result of the operation, \
1557
1540
without modifying the original"]
1558
1541
#[ inline]
@@ -1612,17 +1595,16 @@ macro_rules! int_impl {
1612
1595
/// # Examples
1613
1596
///
1614
1597
/// ```
1615
- /// #![feature(strict_overflow_ops)]
1616
1598
#[ doc = concat!( "assert_eq!(8" , stringify!( $SelfT) , ".strict_pow(2), 64);" ) ]
1617
1599
/// ```
1618
1600
///
1619
1601
/// The following panics because of overflow:
1620
1602
///
1621
1603
/// ```should_panic
1622
- /// #![feature(strict_overflow_ops)]
1623
1604
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MAX.strict_pow(2);" ) ]
1624
1605
/// ```
1625
- #[ unstable( feature = "strict_overflow_ops" , issue = "118260" ) ]
1606
+ #[ stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1607
+ #[ rustc_const_stable( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION" ) ]
1626
1608
#[ must_use = "this returns the result of the operation, \
1627
1609
without modifying the original"]
1628
1610
#[ inline]
0 commit comments