@@ -464,12 +464,11 @@ macro_rules! int_impl {
464
464
/// Basic usage:
465
465
///
466
466
/// ```
467
- /// # #![feature(mixed_integer_ops)]
468
467
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".checked_add_unsigned(2), Some(3));" ) ]
469
468
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).checked_add_unsigned(3), None);" ) ]
470
469
/// ```
471
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
472
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
470
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
471
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
473
472
#[ must_use = "this returns the result of the operation, \
474
473
without modifying the original"]
475
474
#[ inline]
@@ -533,12 +532,11 @@ macro_rules! int_impl {
533
532
/// Basic usage:
534
533
///
535
534
/// ```
536
- /// # #![feature(mixed_integer_ops)]
537
535
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".checked_sub_unsigned(2), Some(-1));" ) ]
538
536
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 2).checked_sub_unsigned(3), None);" ) ]
539
537
/// ```
540
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
541
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
538
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
539
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
542
540
#[ must_use = "this returns the result of the operation, \
543
541
without modifying the original"]
544
542
#[ inline]
@@ -907,12 +905,11 @@ macro_rules! int_impl {
907
905
/// Basic usage:
908
906
///
909
907
/// ```
910
- /// # #![feature(mixed_integer_ops)]
911
908
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".saturating_add_unsigned(2), 3);" ) ]
912
909
#[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MAX.saturating_add_unsigned(100), " , stringify!( $SelfT) , "::MAX);" ) ]
913
910
/// ```
914
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
915
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
911
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
912
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
916
913
#[ must_use = "this returns the result of the operation, \
917
914
without modifying the original"]
918
915
#[ inline]
@@ -954,12 +951,11 @@ macro_rules! int_impl {
954
951
/// Basic usage:
955
952
///
956
953
/// ```
957
- /// # #![feature(mixed_integer_ops)]
958
954
#[ doc = concat!( "assert_eq!(100" , stringify!( $SelfT) , ".saturating_sub_unsigned(127), -27);" ) ]
959
955
#[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MIN.saturating_sub_unsigned(100), " , stringify!( $SelfT) , "::MIN);" ) ]
960
956
/// ```
961
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
962
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
957
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
958
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
963
959
#[ must_use = "this returns the result of the operation, \
964
960
without modifying the original"]
965
961
#[ inline]
@@ -1135,12 +1131,11 @@ macro_rules! int_impl {
1135
1131
/// Basic usage:
1136
1132
///
1137
1133
/// ```
1138
- /// # #![feature(mixed_integer_ops)]
1139
1134
#[ doc = concat!( "assert_eq!(100" , stringify!( $SelfT) , ".wrapping_add_unsigned(27), 127);" ) ]
1140
1135
#[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MAX.wrapping_add_unsigned(2), " , stringify!( $SelfT) , "::MIN + 1);" ) ]
1141
1136
/// ```
1142
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1143
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1137
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1138
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1144
1139
#[ must_use = "this returns the result of the operation, \
1145
1140
without modifying the original"]
1146
1141
#[ inline( always) ]
@@ -1176,12 +1171,11 @@ macro_rules! int_impl {
1176
1171
/// Basic usage:
1177
1172
///
1178
1173
/// ```
1179
- /// # #![feature(mixed_integer_ops)]
1180
1174
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".wrapping_sub_unsigned(127), -127);" ) ]
1181
1175
#[ doc = concat!( "assert_eq!((-2" , stringify!( $SelfT) , ").wrapping_sub_unsigned(" , stringify!( $UnsignedT) , "::MAX), -1);" ) ]
1182
1176
/// ```
1183
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1184
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1177
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1178
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1185
1179
#[ must_use = "this returns the result of the operation, \
1186
1180
without modifying the original"]
1187
1181
#[ inline( always) ]
@@ -1529,13 +1523,12 @@ macro_rules! int_impl {
1529
1523
/// Basic usage:
1530
1524
///
1531
1525
/// ```
1532
- /// # #![feature(mixed_integer_ops)]
1533
1526
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".overflowing_add_unsigned(2), (3, false));" ) ]
1534
1527
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN).overflowing_add_unsigned(" , stringify!( $UnsignedT) , "::MAX), (" , stringify!( $SelfT) , "::MAX, false));" ) ]
1535
1528
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).overflowing_add_unsigned(3), (" , stringify!( $SelfT) , "::MIN, true));" ) ]
1536
1529
/// ```
1537
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1538
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1530
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1531
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1539
1532
#[ must_use = "this returns the result of the operation, \
1540
1533
without modifying the original"]
1541
1534
#[ inline]
@@ -1580,13 +1573,12 @@ macro_rules! int_impl {
1580
1573
/// Basic usage:
1581
1574
///
1582
1575
/// ```
1583
- /// # #![feature(mixed_integer_ops)]
1584
1576
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".overflowing_sub_unsigned(2), (-1, false));" ) ]
1585
1577
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX).overflowing_sub_unsigned(" , stringify!( $UnsignedT) , "::MAX), (" , stringify!( $SelfT) , "::MIN, false));" ) ]
1586
1578
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 2).overflowing_sub_unsigned(3), (" , stringify!( $SelfT) , "::MAX, true));" ) ]
1587
1579
/// ```
1588
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1589
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1580
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1581
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1590
1582
#[ must_use = "this returns the result of the operation, \
1591
1583
without modifying the original"]
1592
1584
#[ inline]
0 commit comments