Skip to content

Commit d9d4594

Browse files
authored
Unrolled build for rust-lang#136663
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
2 parents c182ce9 + 82b32ba commit d9d4594

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/num/nonzero.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,6 @@ macro_rules! nonzero_integer {
612612
/// Basic usage:
613613
///
614614
/// ```
615-
/// #![feature(non_zero_count_ones)]
616-
///
617615
/// # use std::num::NonZero;
618616
/// #
619617
/// # fn main() { test().unwrap(); }
@@ -627,7 +625,8 @@ macro_rules! nonzero_integer {
627625
/// # }
628626
/// ```
629627
///
630-
#[unstable(feature = "non_zero_count_ones", issue = "120287")]
628+
#[stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
629+
#[rustc_const_stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
631630
#[doc(alias = "popcount")]
632631
#[doc(alias = "popcnt")]
633632
#[must_use = "this returns the result of the operation, \

0 commit comments

Comments
 (0)