about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2021-11-14 00:53:09 -0500
committerJacob Pratt <jacob@jhpratt.dev>2021-11-14 00:53:09 -0500
commit5907a8ca107100b387293f86d486fabdaa61ab31 (patch)
tree282a42fdc89aaacaca7b5206b20906efd99f1b51
parent589ad6a5b7328867d08cbd16863e7f49e720f4d7 (diff)
downloadrust-5907a8ca107100b387293f86d486fabdaa61ab31.tar.gz
rust-5907a8ca107100b387293f86d486fabdaa61ab31.zip
Fix incorrect feature flags
-rw-r--r--library/core/src/num/saturating.rs2
-rw-r--r--library/core/src/num/uint_macros.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/saturating.rs b/library/core/src/num/saturating.rs
index ba81f3f9fd6..d9b14c82e96 100644
--- a/library/core/src/num/saturating.rs
+++ b/library/core/src/num/saturating.rs
@@ -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 {
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index a15eabf7966..054b814b7e0 100644
--- a/library/core/src/num/uint_macros.rs
+++ b/library/core/src/num/uint_macros.rs
@@ -2223,7 +2223,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 {