From db57653be58684d5bbf4e5cc477339390da3110a Mon Sep 17 00:00:00 2001 From: Nikolai Vazquez Date: Tue, 6 Sep 2022 23:12:20 -0400 Subject: [PATCH] Stabilize `nonzero_bits` --- library/core/src/num/nonzero.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs index 532a09736a7ac..0cb17f9519324 100644 --- a/library/core/src/num/nonzero.rs +++ b/library/core/src/num/nonzero.rs @@ -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; } )+