Skip to content

Commit

Permalink
Rollup merge of #81590 - KodrAus:stabilize/int_bits_const, r=m-ou-se
Browse files Browse the repository at this point in the history
Stabilize int_bits_const

Closes #76904

The FCP to stabilize the `int_bits_const` feature completed on the tracking issue.
  • Loading branch information
jonas-schievink committed Jan 31, 2021
2 parents 600b2d3 + 8940a26 commit 9165676
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion compiler/rustc_data_structures/src/lib.rs
Expand Up @@ -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)]
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_serialize/src/lib.rs
Expand Up @@ -17,7 +17,6 @@ Core encoding and decoding interfaces.
#![feature(min_specialization)]
#![feature(vec_spare_capacity)]
#![feature(core_intrinsics)]
#![feature(int_bits_const)]
#![feature(maybe_uninit_slice)]
#![feature(new_uninit)]
#![cfg_attr(test, feature(test))]
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_serialize/tests/leb128.rs
@@ -1,4 +1,3 @@
#![feature(int_bits_const)]
#![feature(maybe_uninit_slice)]
#![feature(maybe_uninit_uninit_array)]

Expand Down
1 change: 0 additions & 1 deletion library/alloc/src/lib.rs
Expand Up @@ -101,7 +101,6 @@
#![feature(fn_traits)]
#![feature(fundamental)]
#![feature(inplace_iteration)]
#![feature(int_bits_const)]
#![feature(lang_items)]
#![feature(layout_for_ptr)]
#![feature(maybe_uninit_ref)]
Expand Down
1 change: 0 additions & 1 deletion library/alloc/tests/lib.rs
Expand Up @@ -17,7 +17,6 @@
#![feature(binary_heap_retain)]
#![feature(inplace_iteration)]
#![feature(iter_map_while)]
#![feature(int_bits_const)]
#![feature(vecdeque_binary_search)]
#![feature(slice_group_by)]

Expand Down
3 changes: 1 addition & 2 deletions library/core/src/num/int_macros.rs
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions library/core/src/num/uint_macros.rs
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/lib.rs
Expand Up @@ -70,7 +70,6 @@
#![feature(partition_point)]
#![feature(once_cell)]
#![feature(unsafe_block_in_unsafe_fn)]
#![feature(int_bits_const)]
#![feature(nonzero_leading_trailing_zeros)]
#![feature(const_option)]
#![feature(integer_atomics)]
Expand Down
1 change: 0 additions & 1 deletion library/panic_unwind/src/lib.rs
Expand Up @@ -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)]
Expand Down

0 comments on commit 9165676

Please sign in to comment.