@@ -2033,7 +2033,6 @@ macro_rules! int_impl {
2033
2033
/// Basic usage:
2034
2034
///
2035
2035
/// ```
2036
- /// #![feature(int_roundings)]
2037
2036
#[ doc = concat!( "let a: " , stringify!( $SelfT) , " = 8;" ) ]
2038
2037
/// let b = 3;
2039
2038
///
@@ -2042,7 +2041,8 @@ macro_rules! int_impl {
2042
2041
/// assert_eq!((-a).div_floor(b), -3);
2043
2042
/// assert_eq!((-a).div_floor(-b), 2);
2044
2043
/// ```
2045
- #[ unstable( feature = "int_roundings" , issue = "88581" ) ]
2044
+ #[ stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2045
+ #[ rustc_const_stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2046
2046
#[ must_use = "this returns the result of the operation, \
2047
2047
without modifying the original"]
2048
2048
#[ inline]
@@ -2073,7 +2073,6 @@ macro_rules! int_impl {
2073
2073
/// Basic usage:
2074
2074
///
2075
2075
/// ```
2076
- /// #![feature(int_roundings)]
2077
2076
#[ doc = concat!( "let a: " , stringify!( $SelfT) , " = 8;" ) ]
2078
2077
/// let b = 3;
2079
2078
///
@@ -2082,7 +2081,8 @@ macro_rules! int_impl {
2082
2081
/// assert_eq!((-a).div_ceil(b), -2);
2083
2082
/// assert_eq!((-a).div_ceil(-b), 3);
2084
2083
/// ```
2085
- #[ unstable( feature = "int_roundings" , issue = "88581" ) ]
2084
+ #[ stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2085
+ #[ rustc_const_stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2086
2086
#[ must_use = "this returns the result of the operation, \
2087
2087
without modifying the original"]
2088
2088
#[ inline]
@@ -2116,7 +2116,6 @@ macro_rules! int_impl {
2116
2116
/// Basic usage:
2117
2117
///
2118
2118
/// ```
2119
- /// #![feature(int_roundings)]
2120
2119
#[ doc = concat!( "assert_eq!(16_" , stringify!( $SelfT) , ".next_multiple_of(8), 16);" ) ]
2121
2120
#[ doc = concat!( "assert_eq!(23_" , stringify!( $SelfT) , ".next_multiple_of(8), 24);" ) ]
2122
2121
#[ doc = concat!( "assert_eq!(16_" , stringify!( $SelfT) , ".next_multiple_of(-8), 16);" ) ]
@@ -2126,7 +2125,8 @@ macro_rules! int_impl {
2126
2125
#[ doc = concat!( "assert_eq!((-16_" , stringify!( $SelfT) , ").next_multiple_of(-8), -16);" ) ]
2127
2126
#[ doc = concat!( "assert_eq!((-23_" , stringify!( $SelfT) , ").next_multiple_of(-8), -24);" ) ]
2128
2127
/// ```
2129
- #[ unstable( feature = "int_roundings" , issue = "88581" ) ]
2128
+ #[ stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2129
+ #[ rustc_const_stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2130
2130
#[ must_use = "this returns the result of the operation, \
2131
2131
without modifying the original"]
2132
2132
#[ inline]
@@ -2162,7 +2162,6 @@ macro_rules! int_impl {
2162
2162
/// Basic usage:
2163
2163
///
2164
2164
/// ```
2165
- /// #![feature(int_roundings)]
2166
2165
#[ doc = concat!( "assert_eq!(16_" , stringify!( $SelfT) , ".checked_next_multiple_of(8), Some(16));" ) ]
2167
2166
#[ doc = concat!( "assert_eq!(23_" , stringify!( $SelfT) , ".checked_next_multiple_of(8), Some(24));" ) ]
2168
2167
#[ doc = concat!( "assert_eq!(16_" , stringify!( $SelfT) , ".checked_next_multiple_of(-8), Some(16));" ) ]
@@ -2174,7 +2173,8 @@ macro_rules! int_impl {
2174
2173
#[ doc = concat!( "assert_eq!(1_" , stringify!( $SelfT) , ".checked_next_multiple_of(0), None);" ) ]
2175
2174
#[ doc = concat!( "assert_eq!(" , stringify!( $SelfT) , "::MAX.checked_next_multiple_of(2), None);" ) ]
2176
2175
/// ```
2177
- #[ unstable( feature = "int_roundings" , issue = "88581" ) ]
2176
+ #[ stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2177
+ #[ rustc_const_stable( feature = "int_roundings" , since = "CURRENT_RUSTC_VERSION" ) ]
2178
2178
#[ must_use = "this returns the result of the operation, \
2179
2179
without modifying the original"]
2180
2180
#[ inline]
0 commit comments