Skip to content

Commit e59adf8

Browse files
committed
Revert "Revert stabilizing integer::BITS."
1 parent 9942cf5 commit e59adf8

File tree

6 files changed

+2
-8
lines changed

6 files changed

+2
-8
lines changed

alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
#![feature(fn_traits)]
104104
#![feature(fundamental)]
105105
#![feature(inplace_iteration)]
106-
#![feature(int_bits_const)]
107106
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
108107
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
109108
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs

alloc/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#![feature(binary_heap_retain)]
1717
#![feature(inplace_iteration)]
1818
#![feature(iter_map_while)]
19-
#![feature(int_bits_const)]
2019
#![feature(vecdeque_binary_search)]
2120
#![feature(slice_group_by)]
2221
#![feature(slice_partition_dedup)]

core/src/num/int_macros.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ macro_rules! int_impl {
3232
/// # Examples
3333
///
3434
/// ```
35-
/// #![feature(int_bits_const)]
3635
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
3736
/// ```
38-
#[unstable(feature = "int_bits_const", issue = "76904")]
37+
#[stable(feature = "int_bits_const", since = "1.51.0")]
3938
pub const BITS: u32 = $BITS;
4039

4140
/// Converts a string slice in a given base to an integer.

core/src/num/uint_macros.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ macro_rules! uint_impl {
3232
/// # Examples
3333
///
3434
/// ```
35-
/// #![feature(int_bits_const)]
3635
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
3736
/// ```
38-
#[unstable(feature = "int_bits_const", issue = "76904")]
37+
#[stable(feature = "int_bits_const", since = "1.51.0")]
3938
pub const BITS: u32 = $BITS;
4039

4140
/// Converts a string slice in a given base to an integer.

core/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#![cfg_attr(not(bootstrap), feature(ptr_metadata))]
7474
#![feature(once_cell)]
7575
#![feature(unsized_tuple_coercion)]
76-
#![feature(int_bits_const)]
7776
#![feature(nonzero_leading_trailing_zeros)]
7877
#![feature(const_option)]
7978
#![feature(integer_atomics)]

panic_unwind/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/"
1919
)]
2020
#![feature(core_intrinsics)]
21-
#![feature(int_bits_const)]
2221
#![feature(lang_items)]
2322
#![feature(nll)]
2423
#![feature(panic_unwind)]

0 commit comments

Comments
 (0)