@@ -191,13 +191,12 @@ macro_rules! nonzero_leading_trailing_zeros {
191
191
/// Basic usage:
192
192
///
193
193
/// ```
194
- /// #![feature(nonzero_leading_trailing_zeros)]
195
194
#[ doc = concat!( "let n = std::num::" , stringify!( $Ty) , "::new(" , stringify!( $LeadingTestExpr) , ").unwrap();" ) ]
196
195
///
197
196
/// assert_eq!(n.leading_zeros(), 0);
198
197
/// ```
199
- #[ unstable ( feature = "nonzero_leading_trailing_zeros" , issue = "79143 " ) ]
200
- #[ rustc_const_unstable ( feature = "nonzero_leading_trailing_zeros" , issue = "79143 " ) ]
198
+ #[ stable ( feature = "nonzero_leading_trailing_zeros" , since = "1.53.0 " ) ]
199
+ #[ rustc_const_stable ( feature = "nonzero_leading_trailing_zeros" , since = "1.53.0 " ) ]
201
200
#[ inline]
202
201
pub const fn leading_zeros( self ) -> u32 {
203
202
// SAFETY: since `self` can not be zero it is safe to call ctlz_nonzero
@@ -214,13 +213,12 @@ macro_rules! nonzero_leading_trailing_zeros {
214
213
/// Basic usage:
215
214
///
216
215
/// ```
217
- /// #![feature(nonzero_leading_trailing_zeros)]
218
216
#[ doc = concat!( "let n = std::num::" , stringify!( $Ty) , "::new(0b0101000).unwrap();" ) ]
219
217
///
220
218
/// assert_eq!(n.trailing_zeros(), 3);
221
219
/// ```
222
- #[ unstable ( feature = "nonzero_leading_trailing_zeros" , issue = "79143 " ) ]
223
- #[ rustc_const_unstable ( feature = "nonzero_leading_trailing_zeros" , issue = "79143 " ) ]
220
+ #[ stable ( feature = "nonzero_leading_trailing_zeros" , since = "1.53.0 " ) ]
221
+ #[ rustc_const_stable ( feature = "nonzero_leading_trailing_zeros" , since = "1.53.0 " ) ]
224
222
#[ inline]
225
223
pub const fn trailing_zeros( self ) -> u32 {
226
224
// SAFETY: since `self` can not be zero it is safe to call cttz_nonzero
0 commit comments