Skip to content

Commit fe309a0

Browse files
committed
Stabilize feature uint_bit_width
1 parent 02c7f9b commit fe309a0

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

library/core/src/num/nonzero.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,8 +1950,6 @@ macro_rules! nonzero_integer_signedness_dependent_methods {
19501950
/// # Examples
19511951
///
19521952
/// ```
1953-
/// #![feature(uint_bit_width)]
1954-
///
19551953
/// # use core::num::NonZero;
19561954
/// #
19571955
/// # fn main() { test().unwrap(); }
@@ -1962,7 +1960,8 @@ macro_rules! nonzero_integer_signedness_dependent_methods {
19621960
/// # Some(())
19631961
/// # }
19641962
/// ```
1965-
#[unstable(feature = "uint_bit_width", issue = "142326")]
1963+
#[stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
1964+
#[rustc_const_stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
19661965
#[must_use = "this returns the result of the operation, \
19671966
without modifying the original"]
19681967
#[inline(always)]

library/core/src/num/uint_macros.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,13 @@ macro_rules! uint_impl {
232232
/// # Examples
233233
///
234234
/// ```
235-
/// #![feature(uint_bit_width)]
236-
///
237235
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".bit_width(), 0);")]
238236
#[doc = concat!("assert_eq!(0b111_", stringify!($SelfT), ".bit_width(), 3);")]
239237
#[doc = concat!("assert_eq!(0b1110_", stringify!($SelfT), ".bit_width(), 4);")]
240238
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.bit_width(), ", stringify!($BITS), ");")]
241239
/// ```
242-
#[unstable(feature = "uint_bit_width", issue = "142326")]
240+
#[stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
241+
#[rustc_const_stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
243242
#[must_use = "this returns the result of the operation, \
244243
without modifying the original"]
245244
#[inline(always)]

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
#![feature(try_find)]
122122
#![feature(try_trait_v2)]
123123
#![feature(type_info)]
124-
#![feature(uint_bit_width)]
125124
#![feature(uint_carryless_mul)]
126125
#![feature(uint_gather_scatter_bits)]
127126
#![feature(unicode_internals)]

0 commit comments

Comments
 (0)