stabilize NonZero::count_ones
This commit is contained in:
parent
942db6782f
commit
82b32ba03d
1 changed files with 2 additions and 3 deletions
|
@ -612,8 +612,6 @@ macro_rules! nonzero_integer {
|
|||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(non_zero_count_ones)]
|
||||
///
|
||||
/// # use std::num::NonZero;
|
||||
/// #
|
||||
/// # fn main() { test().unwrap(); }
|
||||
|
@ -627,7 +625,8 @@ macro_rules! nonzero_integer {
|
|||
/// # }
|
||||
/// ```
|
||||
///
|
||||
#[unstable(feature = "non_zero_count_ones", issue = "120287")]
|
||||
#[stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[doc(alias = "popcount")]
|
||||
#[doc(alias = "popcnt")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue