Stabilize nonzero_bits
This commit is contained in:
parent
699bfa882b
commit
db57653be5
1 changed files with 1 additions and 2 deletions
|
|
@ -1106,12 +1106,11 @@ macro_rules! nonzero_bits {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(nonzero_bits)]
|
||||
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
||||
///
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::BITS, ", stringify!($Int), "::BITS);")]
|
||||
/// ```
|
||||
#[unstable(feature = "nonzero_bits", issue = "94881")]
|
||||
#[stable(feature = "nonzero_bits", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub const BITS: u32 = <$Int>::BITS;
|
||||
}
|
||||
)+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue