1
Fork 0

Fix 'const-stable since' of reverse_bits

This commit is contained in:
Paolo Barbolini 2021-04-25 11:58:59 +02:00
parent 5da10c0121
commit 34e51279ab
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {