Stabilize feature uint_bit_width

This commit is contained in:
Shun Sakai
2026-04-11 07:46:34 +09:00
parent 02c7f9bec0
commit fe309a0bed
3 changed files with 4 additions and 7 deletions
+2 -3
View File
@@ -1950,8 +1950,6 @@ pub const fn cast_signed(self) -> NonZero<$Sint> {
/// # Examples
///
/// ```
/// #![feature(uint_bit_width)]
///
/// # use core::num::NonZero;
/// #
/// # fn main() { test().unwrap(); }
@@ -1962,7 +1960,8 @@ pub const fn cast_signed(self) -> NonZero<$Sint> {
/// # Some(())
/// # }
/// ```
#[unstable(feature = "uint_bit_width", issue = "142326")]
#[stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline(always)]
+2 -3
View File
@@ -232,14 +232,13 @@ pub const fn trailing_ones(self) -> u32 {
/// # Examples
///
/// ```
/// #![feature(uint_bit_width)]
///
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".bit_width(), 0);")]
#[doc = concat!("assert_eq!(0b111_", stringify!($SelfT), ".bit_width(), 3);")]
#[doc = concat!("assert_eq!(0b1110_", stringify!($SelfT), ".bit_width(), 4);")]
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.bit_width(), ", stringify!($BITS), ");")]
/// ```
#[unstable(feature = "uint_bit_width", issue = "142326")]
#[stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "uint_bit_width", since = "CURRENT_RUSTC_VERSION")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline(always)]
-1
View File
@@ -121,7 +121,6 @@
#![feature(try_find)]
#![feature(try_trait_v2)]
#![feature(type_info)]
#![feature(uint_bit_width)]
#![feature(uint_carryless_mul)]
#![feature(uint_gather_scatter_bits)]
#![feature(unicode_internals)]