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