Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
Rollup merge of rust-lang#136663 - WaffleLapkin:count-non-zero-ones, …
Browse files Browse the repository at this point in the history
…r=cuviper

Stabilize `NonZero::count_ones`

As per rust-lang#120287 (comment)

r? libs
  • Loading branch information
jhpratt authored Feb 11, 2025
2 parents 0cb377c + 82b32ba commit 7a6592d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,6 @@ macro_rules! nonzero_integer {
/// Basic usage:
///
/// ```
/// #![feature(non_zero_count_ones)]
///
/// # use std::num::NonZero;
/// #
/// # fn main() { test().unwrap(); }
Expand All @@ -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, \
Expand Down

0 comments on commit 7a6592d

Please # to comment.