Skip to content

Commit a11d1c5

Browse files
committed
Fix incompatible stability lint
1 parent 354502a commit a11d1c5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

library/core/src/intrinsics.rs

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
issue = "none"
5454
)]
5555
#![allow(missing_docs)]
56+
// intrinsics are never stable but may need to be const-stable for other items
57+
#![cfg_attr(not(bootstrap), allow(rustc::incompatible_stability))]
5658

5759
use crate::marker::DiscriminantKind;
5860
use crate::mem;

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
@@ -2208,7 +2208,7 @@ macro_rules! uint_impl {
22082208
/// ```
22092209
#[unstable(feature = "wrapping_next_power_of_two", issue = "32463",
22102210
reason = "needs decision on wrapping behaviour")]
2211-
#[rustc_const_stable(feature = "const_int_pow", since = "1.50.0")]
2211+
#[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")]
22122212
#[must_use = "this returns the result of the operation, \
22132213
without modifying the original"]
22142214
pub const fn wrapping_next_power_of_two(self) -> Self {

0 commit comments

Comments
 (0)