@@ -469,17 +469,15 @@ 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 " ) ]
483
481
#[ must_use = "this returns the result of the operation, \
484
482
without modifying the original"]
485
483
#[ inline]
@@ -560,17 +558,15 @@ macro_rules! int_impl {
560
558
/// # Examples
561
559
///
562
560
/// ```
563
- /// #![feature(strict_overflow_ops)]
564
561
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".strict_add_unsigned(2), 3);" ) ]
565
562
/// ```
566
563
///
567
564
/// The following panics because of overflow:
568
565
///
569
566
/// ```should_panic
570
- /// #![feature(strict_overflow_ops)]
571
567
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MAX - 2).strict_add_unsigned(3);" ) ]
572
568
/// ```
573
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
569
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
574
570
#[ must_use = "this returns the result of the operation, \
575
571
without modifying the original"]
576
572
#[ inline]
@@ -611,17 +607,15 @@ macro_rules! int_impl {
611
607
/// # Examples
612
608
///
613
609
/// ```
614
- /// #![feature(strict_overflow_ops)]
615
610
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 2).strict_sub(1), " , stringify!( $SelfT) , "::MIN + 1);" ) ]
616
611
/// ```
617
612
///
618
613
/// The following panics because of overflow:
619
614
///
620
615
/// ```should_panic
621
- /// #![feature(strict_overflow_ops)]
622
616
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MIN + 2).strict_sub(3);" ) ]
623
617
/// ```
624
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
618
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
625
619
#[ must_use = "this returns the result of the operation, \
626
620
without modifying the original"]
627
621
#[ inline]
@@ -702,17 +696,15 @@ macro_rules! int_impl {
702
696
/// # Examples
703
697
///
704
698
/// ```
705
- /// #![feature(strict_overflow_ops)]
706
699
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".strict_sub_unsigned(2), -1);" ) ]
707
700
/// ```
708
701
///
709
702
/// The following panics because of overflow:
710
703
///
711
704
/// ```should_panic
712
- /// #![feature(strict_overflow_ops)]
713
705
#[ doc = concat!( "let _ = (" , stringify!( $SelfT) , "::MIN + 2).strict_sub_unsigned(3);" ) ]
714
706
/// ```
715
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
707
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
716
708
#[ must_use = "this returns the result of the operation, \
717
709
without modifying the original"]
718
710
#[ inline]
@@ -753,17 +745,15 @@ macro_rules! int_impl {
753
745
/// # Examples
754
746
///
755
747
/// ```
756
- /// #![feature(strict_overflow_ops)]
757
748
#[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MAX.strict_mul(1), " , stringify!( $SelfT) , "::MAX);" ) ]
758
749
/// ```
759
750
///
760
751
/// The following panics because of overflow:
761
752
///
762
753
/// ``` should_panic
763
- /// #![feature(strict_overflow_ops)]
764
754
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MAX.strict_mul(2);" ) ]
765
755
/// ```
766
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
756
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
767
757
#[ must_use = "this returns the result of the operation, \
768
758
without modifying the original"]
769
759
#[ inline]
@@ -855,24 +845,21 @@ macro_rules! int_impl {
855
845
/// # Examples
856
846
///
857
847
/// ```
858
- /// #![feature(strict_overflow_ops)]
859
848
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 1).strict_div(-1), " , stringify!( $Max) , ");" ) ]
860
849
/// ```
861
850
///
862
851
/// The following panics because of overflow:
863
852
///
864
853
/// ```should_panic
865
- /// #![feature(strict_overflow_ops)]
866
854
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_div(-1);" ) ]
867
855
/// ```
868
856
///
869
857
/// The following panics because of division by zero:
870
858
///
871
859
/// ```should_panic
872
- /// #![feature(strict_overflow_ops)]
873
860
#[ doc = concat!( "let _ = (1" , stringify!( $SelfT) , ").strict_div(0);" ) ]
874
861
/// ```
875
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
862
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
876
863
#[ must_use = "this returns the result of the operation, \
877
864
without modifying the original"]
878
865
#[ inline]
@@ -924,24 +911,21 @@ macro_rules! int_impl {
924
911
/// # Examples
925
912
///
926
913
/// ```
927
- /// #![feature(strict_overflow_ops)]
928
914
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 1).strict_div_euclid(-1), " , stringify!( $Max) , ");" ) ]
929
915
/// ```
930
916
///
931
917
/// The following panics because of overflow:
932
918
///
933
919
/// ```should_panic
934
- /// #![feature(strict_overflow_ops)]
935
920
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_div_euclid(-1);" ) ]
936
921
/// ```
937
922
///
938
923
/// The following panics because of division by zero:
939
924
///
940
925
/// ```should_panic
941
- /// #![feature(strict_overflow_ops)]
942
926
#[ doc = concat!( "let _ = (1" , stringify!( $SelfT) , ").strict_div_euclid(0);" ) ]
943
927
/// ```
944
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
928
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
945
929
#[ must_use = "this returns the result of the operation, \
946
930
without modifying the original"]
947
931
#[ inline]
@@ -1092,24 +1076,21 @@ macro_rules! int_impl {
1092
1076
/// # Examples
1093
1077
///
1094
1078
/// ```
1095
- /// #![feature(strict_overflow_ops)]
1096
1079
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_rem(2), 1);" ) ]
1097
1080
/// ```
1098
1081
///
1099
1082
/// The following panics because of division by zero:
1100
1083
///
1101
1084
/// ```should_panic
1102
- /// #![feature(strict_overflow_ops)]
1103
1085
#[ doc = concat!( "let _ = 5" , stringify!( $SelfT) , ".strict_rem(0);" ) ]
1104
1086
/// ```
1105
1087
///
1106
1088
/// The following panics because of overflow:
1107
1089
///
1108
1090
/// ```should_panic
1109
- /// #![feature(strict_overflow_ops)]
1110
1091
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_rem(-1);" ) ]
1111
1092
/// ```
1112
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1093
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1113
1094
#[ must_use = "this returns the result of the operation, \
1114
1095
without modifying the original"]
1115
1096
#[ inline]
@@ -1160,24 +1141,21 @@ macro_rules! int_impl {
1160
1141
/// # Examples
1161
1142
///
1162
1143
/// ```
1163
- /// #![feature(strict_overflow_ops)]
1164
1144
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_rem_euclid(2), 1);" ) ]
1165
1145
/// ```
1166
1146
///
1167
1147
/// The following panics because of division by zero:
1168
1148
///
1169
1149
/// ```should_panic
1170
- /// #![feature(strict_overflow_ops)]
1171
1150
#[ doc = concat!( "let _ = 5" , stringify!( $SelfT) , ".strict_rem_euclid(0);" ) ]
1172
1151
/// ```
1173
1152
///
1174
1153
/// The following panics because of overflow:
1175
1154
///
1176
1155
/// ```should_panic
1177
- /// #![feature(strict_overflow_ops)]
1178
1156
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_rem_euclid(-1);" ) ]
1179
1157
/// ```
1180
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1158
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1181
1159
#[ must_use = "this returns the result of the operation, \
1182
1160
without modifying the original"]
1183
1161
#[ inline]
@@ -1249,17 +1227,15 @@ macro_rules! int_impl {
1249
1227
/// # Examples
1250
1228
///
1251
1229
/// ```
1252
- /// #![feature(strict_overflow_ops)]
1253
1230
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".strict_neg(), -5);" ) ]
1254
1231
/// ```
1255
1232
///
1256
1233
/// The following panics because of overflow:
1257
1234
///
1258
1235
/// ```should_panic
1259
- /// #![feature(strict_overflow_ops)]
1260
1236
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_neg();" ) ]
1261
1237
///
1262
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1238
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1263
1239
#[ must_use = "this returns the result of the operation, \
1264
1240
without modifying the original"]
1265
1241
#[ inline]
@@ -1306,17 +1282,15 @@ macro_rules! int_impl {
1306
1282
/// # Examples
1307
1283
///
1308
1284
/// ```
1309
- /// #![feature(strict_overflow_ops)]
1310
1285
#[ doc = concat!( "assert_eq!(0x1" , stringify!( $SelfT) , ".strict_shl(4), 0x10);" ) ]
1311
1286
/// ```
1312
1287
///
1313
1288
/// The following panics because of overflow:
1314
1289
///
1315
1290
/// ```should_panic
1316
- /// #![feature(strict_overflow_ops)]
1317
1291
#[ doc = concat!( "let _ = 0x1" , stringify!( $SelfT) , ".strict_shl(129);" ) ]
1318
1292
/// ```
1319
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1293
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1320
1294
#[ must_use = "this returns the result of the operation, \
1321
1295
without modifying the original"]
1322
1296
#[ inline]
@@ -1422,17 +1396,15 @@ macro_rules! int_impl {
1422
1396
/// # Examples
1423
1397
///
1424
1398
/// ```
1425
- /// #![feature(strict_overflow_ops)]
1426
1399
#[ doc = concat!( "assert_eq!(0x10" , stringify!( $SelfT) , ".strict_shr(4), 0x1);" ) ]
1427
1400
/// ```
1428
1401
///
1429
1402
/// The following panics because of overflow:
1430
1403
///
1431
1404
/// ```should_panic
1432
- /// #![feature(strict_overflow_ops)]
1433
1405
#[ doc = concat!( "let _ = 0x10" , stringify!( $SelfT) , ".strict_shr(128);" ) ]
1434
1406
/// ```
1435
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1407
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1436
1408
#[ must_use = "this returns the result of the operation, \
1437
1409
without modifying the original"]
1438
1410
#[ inline]
@@ -1542,17 +1514,15 @@ macro_rules! int_impl {
1542
1514
/// # Examples
1543
1515
///
1544
1516
/// ```
1545
- /// #![feature(strict_overflow_ops)]
1546
1517
#[ doc = concat!( "assert_eq!((-5" , stringify!( $SelfT) , ").strict_abs(), 5);" ) ]
1547
1518
/// ```
1548
1519
///
1549
1520
/// The following panics because of overflow:
1550
1521
///
1551
1522
/// ```should_panic
1552
- /// #![feature(strict_overflow_ops)]
1553
1523
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MIN.strict_abs();" ) ]
1554
1524
/// ```
1555
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1525
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1556
1526
#[ must_use = "this returns the result of the operation, \
1557
1527
without modifying the original"]
1558
1528
#[ inline]
@@ -1612,17 +1582,15 @@ macro_rules! int_impl {
1612
1582
/// # Examples
1613
1583
///
1614
1584
/// ```
1615
- /// #![feature(strict_overflow_ops)]
1616
1585
#[ doc = concat!( "assert_eq!(8" , stringify!( $SelfT) , ".strict_pow(2), 64);" ) ]
1617
1586
/// ```
1618
1587
///
1619
1588
/// The following panics because of overflow:
1620
1589
///
1621
1590
/// ```should_panic
1622
- /// #![feature(strict_overflow_ops)]
1623
1591
#[ doc = concat!( "let _ = " , stringify!( $SelfT) , "::MAX.strict_pow(2);" ) ]
1624
1592
/// ```
1625
- #[ unstable ( feature = "strict_overflow_ops" , issue = "118260 " ) ]
1593
+ #[ stable ( feature = "strict_overflow_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1626
1594
#[ must_use = "this returns the result of the operation, \
1627
1595
without modifying the original"]
1628
1596
#[ inline]
0 commit comments