Skip to content

Commit 616f9ef

Browse files
authored
Rollup merge of #90897 - jhpratt:fix-incorrect-feature-flags, r=dtolnay
Fix incorrect stability attributes These two instances were caught in #90356, but that PR isn't going to be merged. I've extracted these to ensure it's still correct. ``@rustbot`` label: +A-stability +C-cleanup +S-waiting-on-review
2 parents 71c1d56 + 5907a8c commit 616f9ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/num/saturating.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ macro_rules! saturating_int_impl {
628628
/// ```
629629
#[inline]
630630
#[unstable(feature = "saturating_int_impl", issue = "87920")]
631-
#[rustc_const_stable(feature = "const_reverse_bits", since = "1.37.0")]
631+
#[rustc_const_unstable(feature = "saturating_int_impl", issue = "87920")]
632632
#[must_use = "this returns the result of the operation, \
633633
without modifying the original"]
634634
pub const fn reverse_bits(self) -> Self {

library/core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ macro_rules! uint_impl {
22232223
/// ```
22242224
#[unstable(feature = "wrapping_next_power_of_two", issue = "32463",
22252225
reason = "needs decision on wrapping behaviour")]
2226-
#[rustc_const_stable(feature = "const_int_pow", since = "1.50.0")]
2226+
#[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")]
22272227
#[must_use = "this returns the result of the operation, \
22282228
without modifying the original"]
22292229
pub const fn wrapping_next_power_of_two(self) -> Self {

0 commit comments

Comments
 (0)