1
Fork 0

stabilize int_bits_const

This commit is contained in:
Ashley Mannix 2021-01-31 21:50:47 +10:00
parent 9b32429822
commit 8940a2652e
9 changed files with 2 additions and 11 deletions

View file

@ -32,10 +32,9 @@ macro_rules! int_impl {
/// # Examples
///
/// ```
/// #![feature(int_bits_const)]
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
/// ```
#[unstable(feature = "int_bits_const", issue = "76904")]
#[stable(feature = "int_bits_const", since = "1.51.0")]
pub const BITS: u32 = $BITS;
/// Converts a string slice in a given base to an integer.