1
Fork 0

stabilize NonZero::count_ones

This commit is contained in:
Waffle Lapkin 2025-02-06 22:38:24 +01:00
parent 942db6782f
commit 82b32ba03d
No known key found for this signature in database

View file

@ -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, \