]> git.lizzy.rs Git - rust.git/commitdiff
Revert "Revert stabilizing integer::BITS."
authorMara Bos <m-ou.se@m-ou.se>
Fri, 26 Feb 2021 21:38:24 +0000 (22:38 +0100)
committerMara Bos <m-ou.se@m-ou.se>
Wed, 24 Mar 2021 21:34:36 +0000 (22:34 +0100)
compiler/rustc_data_structures/src/lib.rs
compiler/rustc_serialize/src/lib.rs
compiler/rustc_serialize/tests/leb128.rs
library/alloc/src/lib.rs
library/alloc/tests/lib.rs
library/core/src/num/int_macros.rs
library/core/src/num/uint_macros.rs
library/core/tests/lib.rs
library/panic_unwind/src/lib.rs

index fcb2bca7b4cc195005315711ae01356760475abf..123618a440de282c0b413b695f1019754c6364e9 100644 (file)
@@ -13,7 +13,6 @@
 #![feature(unboxed_closures)]
 #![feature(generator_trait)]
 #![feature(fn_traits)]
-#![feature(int_bits_const)]
 #![feature(min_specialization)]
 #![feature(auto_traits)]
 #![feature(nll)]
index 40b9522949d01c30e594b5e1b83b9a30a3c5780c..cf5a9118275d9ed407a8fd2a5c2b88f1e01a938c 100644 (file)
@@ -16,7 +16,6 @@
 #![feature(min_specialization)]
 #![feature(vec_spare_capacity)]
 #![feature(core_intrinsics)]
-#![feature(int_bits_const)]
 #![feature(maybe_uninit_array_assume_init)]
 #![feature(maybe_uninit_uninit_array)]
 #![feature(maybe_uninit_slice)]
index a2bcf2c251d7ab1295f4293c9628819d956bcb20..3e2aab5125ab7b5fd98e5daf67f399639aa3414e 100644 (file)
@@ -1,4 +1,3 @@
-#![feature(int_bits_const)]
 #![feature(maybe_uninit_slice)]
 #![feature(maybe_uninit_uninit_array)]
 
index f34d25e01fc2ffe5cce3ee5509a781e8c1f31dcb..40f2de8f70dd3585c10173809cce48afcd783dcd 100644 (file)
 #![feature(fn_traits)]
 #![feature(fundamental)]
 #![feature(inplace_iteration)]
-#![feature(int_bits_const)]
 // Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
 // blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
 // that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs
index 06874bff44ed6036899dc4e53d2405579964cea6..c75a6c1f61990bc9a78a3480577237b23d00fbe9 100644 (file)
@@ -16,7 +16,6 @@
 #![feature(binary_heap_retain)]
 #![feature(inplace_iteration)]
 #![feature(iter_map_while)]
-#![feature(int_bits_const)]
 #![feature(vecdeque_binary_search)]
 #![feature(slice_group_by)]
 #![feature(slice_partition_dedup)]
index 79737b48d790d3c9fd7b383a8d25ba173a3c8656..9e7af225395411bfa3344a3b73011363d4fc5bda 100644 (file)
@@ -32,10 +32,9 @@ macro_rules! int_impl {
         /// # Examples
         ///
         /// ```
-        /// #![feature(int_bits_const)]
         #[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
         /// ```
-        #[unstable(feature = "int_bits_const", issue = "76904")]
+        #[stable(feature = "int_bits_const", since = "1.51.0")]
         pub const BITS: u32 = $BITS;
 
         /// Converts a string slice in a given base to an integer.
index 7393e7f923e1fdf5d9874a0610f8884814fc6f31..4f4ebed1eda0bdd338da37dba63a532d586a8de3 100644 (file)
@@ -32,10 +32,9 @@ macro_rules! uint_impl {
         /// # Examples
         ///
         /// ```
-        /// #![feature(int_bits_const)]
         #[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
         /// ```
-        #[unstable(feature = "int_bits_const", issue = "76904")]
+        #[stable(feature = "int_bits_const", since = "1.51.0")]
         pub const BITS: u32 = $BITS;
 
         /// Converts a string slice in a given base to an integer.
index b7fcc740363811be50261b16948b3488328c771f..8f797aeed0deffe9415d10071cb7632d79bfd90b 100644 (file)
@@ -73,7 +73,6 @@
 #![cfg_attr(not(bootstrap), feature(ptr_metadata))]
 #![feature(once_cell)]
 #![feature(unsized_tuple_coercion)]
-#![feature(int_bits_const)]
 #![feature(nonzero_leading_trailing_zeros)]
 #![feature(const_option)]
 #![feature(integer_atomics)]
index 9ce9c477ec0f0ae18f8722fb6062ab0d1d936b6d..99a0c67fc11b90625918ef1d0a3dd5a32d493424 100644 (file)
@@ -18,7 +18,6 @@
     issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/"
 )]
 #![feature(core_intrinsics)]
-#![feature(int_bits_const)]
 #![feature(lang_items)]
 #![feature(nll)]
 #![feature(panic_unwind)]