@@ -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) ]
@@ -1574,13 +1568,12 @@ macro_rules! int_impl {
1574
1568
/// Basic usage:
1575
1569
///
1576
1570
/// ```
1577
- /// # #![feature(mixed_integer_ops)]
1578
1571
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".overflowing_add_unsigned(2), (3, false));" ) ]
1579
1572
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN).overflowing_add_unsigned(" , stringify!( $UnsignedT) , "::MAX), (" , stringify!( $SelfT) , "::MAX, false));" ) ]
1580
1573
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).overflowing_add_unsigned(3), (" , stringify!( $SelfT) , "::MIN, true));" ) ]
1581
1574
/// ```
1582
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1583
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1575
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1576
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1584
1577
#[ must_use = "this returns the result of the operation, \
1585
1578
without modifying the original"]
1586
1579
#[ inline]
@@ -1658,13 +1651,12 @@ macro_rules! int_impl {
1658
1651
/// Basic usage:
1659
1652
///
1660
1653
/// ```
1661
- /// # #![feature(mixed_integer_ops)]
1662
1654
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".overflowing_sub_unsigned(2), (-1, false));" ) ]
1663
1655
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX).overflowing_sub_unsigned(" , stringify!( $UnsignedT) , "::MAX), (" , stringify!( $SelfT) , "::MIN, false));" ) ]
1664
1656
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MIN + 2).overflowing_sub_unsigned(3), (" , stringify!( $SelfT) , "::MAX, true));" ) ]
1665
1657
/// ```
1666
- #[ unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1667
- #[ rustc_const_unstable ( feature = "mixed_integer_ops" , issue = "87840 " ) ]
1658
+ #[ stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1659
+ #[ rustc_const_stable ( feature = "mixed_integer_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
1668
1660
#[ must_use = "this returns the result of the operation, \
1669
1661
without modifying the original"]
1670
1662
#[ inline]
0 commit comments