Skip to content

Commit 7238b37

Browse files
authored
Rollup merge of rust-lang#81727 - m-ou-se:unstabilize-bits, r=Mark-Simulacrum
Revert stabilizing integer::BITS. We agreed in the libs meeting just now to revert stablization, since the [breakage](rust-lang#81654) is significant throughout the ecosystem, through `lexical-core`. cc rust-lang#76904 Fixes rust-lang#81654
2 parents 1a6758d + 5a75d26 commit 7238b37

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

alloc/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
#![feature(fn_traits)]
103103
#![feature(fundamental)]
104104
#![feature(inplace_iteration)]
105+
#![feature(int_bits_const)]
105106
#![feature(lang_items)]
106107
#![feature(layout_for_ptr)]
107108
#![feature(maybe_uninit_ref)]

alloc/tests/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#![feature(binary_heap_retain)]
1818
#![feature(inplace_iteration)]
1919
#![feature(iter_map_while)]
20+
#![feature(int_bits_const)]
2021
#![feature(vecdeque_binary_search)]
2122
#![feature(slice_group_by)]
2223
#![feature(vec_extend_from_within)]

core/src/num/int_macros.rs

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

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

core/src/num/uint_macros.rs

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

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

core/tests/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
#![feature(partition_point)]
7171
#![feature(once_cell)]
7272
#![feature(unsafe_block_in_unsafe_fn)]
73+
#![feature(int_bits_const)]
7374
#![feature(nonzero_leading_trailing_zeros)]
7475
#![feature(const_option)]
7576
#![feature(integer_atomics)]

panic_unwind/src/lib.rs

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

0 commit comments

Comments
 (0)