@@ -159,14 +159,14 @@ macro_rules! midpoint_impl {
159
159
/// # Examples
160
160
///
161
161
/// ```
162
- /// #![feature(num_midpoint_signed)]
163
162
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
164
163
#[ doc = concat!( "assert_eq!((-1" , stringify!( $SelfT) , ").midpoint(2), 0);" ) ]
165
164
#[ doc = concat!( "assert_eq!((-7" , stringify!( $SelfT) , ").midpoint(0), -3);" ) ]
166
165
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(-7), -3);" ) ]
167
166
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(7), 3);" ) ]
168
167
/// ```
169
- #[ unstable( feature = "num_midpoint_signed" , issue = "110840" ) ]
168
+ #[ stable( feature = "num_midpoint_signed" , since = "CURRENT_RUSTC_VERSION" ) ]
169
+ #[ rustc_const_stable( feature = "num_midpoint_signed" , since = "CURRENT_RUSTC_VERSION" ) ]
170
170
#[ must_use = "this returns the result of the operation, \
171
171
without modifying the original"]
172
172
#[ inline]
@@ -211,14 +211,14 @@ macro_rules! midpoint_impl {
211
211
/// # Examples
212
212
///
213
213
/// ```
214
- /// #![feature(num_midpoint_signed)]
215
214
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
216
215
#[ doc = concat!( "assert_eq!((-1" , stringify!( $SelfT) , ").midpoint(2), 0);" ) ]
217
216
#[ doc = concat!( "assert_eq!((-7" , stringify!( $SelfT) , ").midpoint(0), -3);" ) ]
218
217
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(-7), -3);" ) ]
219
218
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(7), 3);" ) ]
220
219
/// ```
221
- #[ unstable( feature = "num_midpoint_signed" , issue = "110840" ) ]
220
+ #[ stable( feature = "num_midpoint_signed" , since = "CURRENT_RUSTC_VERSION" ) ]
221
+ #[ rustc_const_stable( feature = "num_midpoint_signed" , since = "CURRENT_RUSTC_VERSION" ) ]
222
222
#[ must_use = "this returns the result of the operation, \
223
223
without modifying the original"]
224
224
#[ inline]
0 commit comments