From 34e51279ab5ea725431d930736b3a97cd22ad286 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sun, 25 Apr 2021 11:58:59 +0200 Subject: [PATCH] Fix 'const-stable since' of reverse_bits --- library/core/src/num/int_macros.rs | 2 +- library/core/src/num/uint_macros.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index 608deb49a9dbf..4b341132e31ec 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -254,7 +254,7 @@ macro_rules! int_impl { #[doc = concat!("assert_eq!(0, 0", stringify!($SelfT), ".reverse_bits());")] /// ``` #[stable(feature = "reverse_bits", since = "1.37.0")] - #[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")] + #[rustc_const_stable(feature = "const_int_methods", since = "1.37.0")] #[inline(always)] #[must_use] pub const fn reverse_bits(self) -> Self { diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 46638ea446316..08d9161eff112 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -257,7 +257,7 @@ macro_rules! uint_impl { #[doc = concat!("assert_eq!(0, 0", stringify!($SelfT), ".reverse_bits());")] /// ``` #[stable(feature = "reverse_bits", since = "1.37.0")] - #[rustc_const_stable(feature = "const_math", since = "1.32.0")] + #[rustc_const_stable(feature = "const_math", since = "1.37.0")] #[inline(always)] #[must_use] pub const fn reverse_bits(self) -> Self {