Skip to content

Commit

Permalink
stabilize NonZero::count_ones
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Feb 6, 2025
1 parent 942db67 commit 82b32ba
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 82b32ba

Please sign in to comment.