@@ -110,18 +110,17 @@ macro_rules! midpoint_impl {
110
110
/// Calculates the middle point of `self` and `rhs`.
111
111
///
112
112
/// `midpoint(a, b)` is `(a + b) >> 1` as if it were performed in a
113
- /// sufficiently-large signed integral type. This implies that the result is
113
+ /// sufficiently-large unsigned integral type. This implies that the result is
114
114
/// always rounded towards negative infinity and that no overflow will ever occur.
115
115
///
116
116
/// # Examples
117
117
///
118
118
/// ```
119
- /// #![feature(num_midpoint)]
120
119
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
121
120
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
122
121
/// ```
123
- #[ unstable ( feature = "num_midpoint" , issue = "110840 " ) ]
124
- #[ rustc_const_unstable ( feature = "const_num_midpoint" , issue = "110840 " ) ]
122
+ #[ stable ( feature = "num_midpoint" , since = "CURRENT_RUSTC_VERSION " ) ]
123
+ #[ rustc_const_stable ( feature = "const_num_midpoint" , since = "CURRENT_RUSTC_VERSION " ) ]
125
124
#[ must_use = "this returns the result of the operation, \
126
125
without modifying the original"]
127
126
#[ inline]
@@ -135,18 +134,17 @@ macro_rules! midpoint_impl {
135
134
/// Calculates the middle point of `self` and `rhs`.
136
135
///
137
136
/// `midpoint(a, b)` is `(a + b) >> 1` as if it were performed in a
138
- /// sufficiently-large signed integral type. This implies that the result is
137
+ /// sufficiently-large unsigned integral type. This implies that the result is
139
138
/// always rounded towards negative infinity and that no overflow will ever occur.
140
139
///
141
140
/// # Examples
142
141
///
143
142
/// ```
144
- /// #![feature(num_midpoint)]
145
143
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
146
144
#[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
147
145
/// ```
148
- #[ unstable ( feature = "num_midpoint" , issue = "110840 " ) ]
149
- #[ rustc_const_unstable ( feature = "const_num_midpoint" , issue = "110840 " ) ]
146
+ #[ stable ( feature = "num_midpoint" , since = "CURRENT_RUSTC_VERSION " ) ]
147
+ #[ rustc_const_stable ( feature = "const_num_midpoint" , since = "CURRENT_RUSTC_VERSION " ) ]
150
148
#[ must_use = "this returns the result of the operation, \
151
149
without modifying the original"]
152
150
#[ inline]
0 commit comments