Skip to content

Commit

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

Stabilize `NonZero::count_ones`

As per rust-lang#120287 (comment)

r? libs
  • Loading branch information
rust-timer authored Feb 11, 2025
2 parents c182ce9 + 82b32ba commit d9d4594
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 d9d4594

Please sign in to comment.