@@ -110,18 +110,17 @@ macro_rules! midpoint_impl {
110110 /// Calculates the middle point of `self` and `rhs`.
111111 ///
112112 /// `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
114114 /// always rounded towards negative infinity and that no overflow will ever occur.
115115 ///
116116 /// # Examples
117117 ///
118118 /// ```
119- /// #![feature(num_midpoint)]
120119 #[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
121120 #[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
122121 /// ```
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 " ) ]
125124 #[ must_use = "this returns the result of the operation, \
126125 without modifying the original"]
127126 #[ inline]
@@ -135,18 +134,17 @@ macro_rules! midpoint_impl {
135134 /// Calculates the middle point of `self` and `rhs`.
136135 ///
137136 /// `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
139138 /// always rounded towards negative infinity and that no overflow will ever occur.
140139 ///
141140 /// # Examples
142141 ///
143142 /// ```
144- /// #![feature(num_midpoint)]
145143 #[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
146144 #[ doc = concat!( "assert_eq!(1" , stringify!( $SelfT) , ".midpoint(4), 2);" ) ]
147145 /// ```
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 " ) ]
150148 #[ must_use = "this returns the result of the operation, \
151149 without modifying the original"]
152150 #[ inline]
0 commit comments