Skip to content

Commit f851a3d

Browse files
committed
Auto merge of rust-lang#84543 - paolobarbolini:reverse_bits-const-since, r=m-ou-se
Fix 'const-stable since' of reverse_bits This fixes the const_stable `since` of `reverse_bits` for the signed and unsigned integer types. The previous value was incorrect, as it pointed to an older version where `reverse_bits` hadn't been stabilized yet. `reverse_bits` was const-stable from the start, as can be seen from: https://doc.rust-lang.org/1.37.0/std/primitive.u32.html#method.reverse_bits https://doc.rust-lang.org/1.37.0/std/primitive.i32.html#method.reverse_bits
2 parents a1d14c0 + 721a878 commit f851a3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: core/src/num/int_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ macro_rules! int_impl {
254254
#[doc = concat!("assert_eq!(0, 0", stringify!($SelfT), ".reverse_bits());")]
255255
/// ```
256256
#[stable(feature = "reverse_bits", since = "1.37.0")]
257-
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
257+
#[rustc_const_stable(feature = "const_int_methods", since = "1.37.0")]
258258
#[inline(always)]
259259
#[must_use]
260260
pub const fn reverse_bits(self) -> Self {

Diff for: core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ macro_rules! uint_impl {
257257
#[doc = concat!("assert_eq!(0, 0", stringify!($SelfT), ".reverse_bits());")]
258258
/// ```
259259
#[stable(feature = "reverse_bits", since = "1.37.0")]
260-
#[rustc_const_stable(feature = "const_math", since = "1.32.0")]
260+
#[rustc_const_stable(feature = "const_math", since = "1.37.0")]
261261
#[inline(always)]
262262
#[must_use]
263263
pub const fn reverse_bits(self) -> Self {

0 commit comments

Comments
 (0)