@@ -786,12 +786,12 @@ macro_rules! uint_impl {
786
786
/// # Examples
787
787
///
788
788
/// ```
789
- /// #![feature(mixed_integer_ops_unsigned_sub)]
790
789
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".checked_sub_signed(2), None);" ) ]
791
790
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".checked_sub_signed(-2), Some(3));" ) ]
792
791
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).checked_sub_signed(-4), None);" ) ]
793
792
/// ```
794
- #[ unstable( feature = "mixed_integer_ops_unsigned_sub" , issue = "126043" ) ]
793
+ #[ stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
794
+ #[ rustc_const_stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
795
795
#[ must_use = "this returns the result of the operation, \
796
796
without modifying the original"]
797
797
#[ inline]
@@ -1933,12 +1933,12 @@ macro_rules! uint_impl {
1933
1933
/// # Examples
1934
1934
///
1935
1935
/// ```
1936
- /// #![feature(mixed_integer_ops_unsigned_sub)]
1937
1936
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".saturating_sub_signed(2), 0);" ) ]
1938
1937
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".saturating_sub_signed(-2), 3);" ) ]
1939
1938
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).saturating_sub_signed(-4), " , stringify!( $SelfT) , "::MAX);" ) ]
1940
1939
/// ```
1941
- #[ unstable( feature = "mixed_integer_ops_unsigned_sub" , issue = "126043" ) ]
1940
+ #[ stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
1941
+ #[ rustc_const_stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
1942
1942
#[ must_use = "this returns the result of the operation, \
1943
1943
without modifying the original"]
1944
1944
#[ inline]
@@ -2081,12 +2081,12 @@ macro_rules! uint_impl {
2081
2081
/// # Examples
2082
2082
///
2083
2083
/// ```
2084
- /// #![feature(mixed_integer_ops_unsigned_sub)]
2085
2084
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".wrapping_sub_signed(2), " , stringify!( $SelfT) , "::MAX);" ) ]
2086
2085
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".wrapping_sub_signed(-2), 3);" ) ]
2087
2086
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).wrapping_sub_signed(-4), 1);" ) ]
2088
2087
/// ```
2089
- #[ unstable( feature = "mixed_integer_ops_unsigned_sub" , issue = "126043" ) ]
2088
+ #[ stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
2089
+ #[ rustc_const_stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
2090
2090
#[ must_use = "this returns the result of the operation, \
2091
2091
without modifying the original"]
2092
2092
#[ inline]
@@ -2540,12 +2540,12 @@ macro_rules! uint_impl {
2540
2540
/// # Examples
2541
2541
///
2542
2542
/// ```
2543
- /// #![feature(mixed_integer_ops_unsigned_sub)]
2544
2543
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".overflowing_sub_signed(2), (" , stringify!( $SelfT) , "::MAX, true));" ) ]
2545
2544
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".overflowing_sub_signed(-2), (3, false));" ) ]
2546
2545
#[ doc = concat!( "assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).overflowing_sub_signed(-4), (1, true));" ) ]
2547
2546
/// ```
2548
- #[ unstable( feature = "mixed_integer_ops_unsigned_sub" , issue = "126043" ) ]
2547
+ #[ stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
2548
+ #[ rustc_const_stable( feature = "mixed_integer_ops_unsigned_sub" , since = "CURRENT_RUSTC_VERSION" ) ]
2549
2549
#[ must_use = "this returns the result of the operation, \
2550
2550
without modifying the original"]
2551
2551
#[ inline]
0 commit comments