mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Stabilize feature uint_bit_width
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user