File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -915,15 +915,13 @@ macro_rules! nonzero_unsigned_is_power_of_two {
915
915
/// Basic usage:
916
916
///
917
917
/// ```
918
- /// #![feature(nonzero_is_power_of_two)]
919
- ///
920
918
#[doc = concat!("let eight = std::num::", stringify!($Ty), "::new(8).unwrap();")]
921
919
/// assert!(eight.is_power_of_two());
922
920
#[doc = concat!("let ten = std::num::", stringify!($Ty), "::new(10).unwrap();")]
923
921
/// assert!(!ten.is_power_of_two());
924
922
/// ```
925
923
#[must_use]
926
- #[unstable (feature = "nonzero_is_power_of_two", issue = "81106 ")]
924
+ #[stable (feature = "nonzero_is_power_of_two", since = "1.59.0 ")]
927
925
#[inline]
928
926
pub const fn is_power_of_two(self) -> bool {
929
927
// LLVM 11 normalizes `unchecked_sub(x, 1) & x == 0` to the implementation seen here.
You can’t perform that action at this time.
0 commit comments