Skip to content

Commit

Permalink
Fix incompatible stability lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Oct 28, 2021
1 parent 354502a commit a11d1c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
issue = "none"
)]
#![allow(missing_docs)]
// intrinsics are never stable but may need to be const-stable for other items
#![cfg_attr(not(bootstrap), allow(rustc::incompatible_stability))]

use crate::marker::DiscriminantKind;
use crate::mem;
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/num/saturating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ macro_rules! saturating_int_impl {
/// ```
#[inline]
#[unstable(feature = "saturating_int_impl", issue = "87920")]
#[rustc_const_stable(feature = "const_reverse_bits", since = "1.37.0")]
#[rustc_const_unstable(feature = "saturating_int_impl", issue = "87920")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn reverse_bits(self) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,7 @@ macro_rules! uint_impl {
/// ```
#[unstable(feature = "wrapping_next_power_of_two", issue = "32463",
reason = "needs decision on wrapping behaviour")]
#[rustc_const_stable(feature = "const_int_pow", since = "1.50.0")]
#[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn wrapping_next_power_of_two(self) -> Self {
Expand Down

0 comments on commit a11d1c5

Please sign in to comment.