diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs index 7362bb77b1684..5863fd57e71e6 100644 --- a/library/core/src/num/nonzero.rs +++ b/library/core/src/num/nonzero.rs @@ -1374,8 +1374,6 @@ macro_rules! nonzero_integer { /// # Examples /// /// ``` - /// #![feature(nonzero_from_str_radix)] - /// /// # use std::num::NonZero; /// # /// # fn main() { test().unwrap(); } @@ -1388,13 +1386,12 @@ macro_rules! nonzero_integer { /// Trailing space returns error: /// /// ``` - /// #![feature(nonzero_from_str_radix)] - /// /// # use std::num::NonZero; /// # #[doc = concat!("assert!(NonZero::<", stringify!($Int), ">::from_str_radix(\"1 \", 10).is_err());")] /// ``` - #[unstable(feature = "nonzero_from_str_radix", issue = "152193")] + #[stable(feature = "nonzero_from_str_radix", since = "CURRENT_RUSTC_VERSION")] + #[rustc_const_stable(feature = "nonzero_from_str_radix", since = "CURRENT_RUSTC_VERSION")] #[inline] pub const fn from_str_radix(src: &str, radix: u32) -> Result { Self::from_ascii_radix(src.as_bytes(), radix) diff --git a/library/coretests/tests/lib.rs b/library/coretests/tests/lib.rs index 1799da9d4abc2..acef8cfceffad 100644 --- a/library/coretests/tests/lib.rs +++ b/library/coretests/tests/lib.rs @@ -91,7 +91,6 @@ #![feature(never_type)] #![feature(next_index)] #![feature(non_exhaustive_omitted_patterns_lint)] -#![feature(nonzero_from_str_radix)] #![feature(num_internals)] #![feature(numfmt)] #![feature(one_sided_range)]