Revert "Revert stabilizing integer::BITS."
This commit is contained in:
parent
f5fe425c92
commit
81932be5e7
9 changed files with 2 additions and 11 deletions
|
@ -13,7 +13,6 @@
|
||||||
#![feature(unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
#![feature(generator_trait)]
|
#![feature(generator_trait)]
|
||||||
#![feature(fn_traits)]
|
#![feature(fn_traits)]
|
||||||
#![feature(int_bits_const)]
|
|
||||||
#![feature(min_specialization)]
|
#![feature(min_specialization)]
|
||||||
#![feature(auto_traits)]
|
#![feature(auto_traits)]
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
|
|
|
@ -16,7 +16,6 @@ Core encoding and decoding interfaces.
|
||||||
#![feature(min_specialization)]
|
#![feature(min_specialization)]
|
||||||
#![feature(vec_spare_capacity)]
|
#![feature(vec_spare_capacity)]
|
||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
#![feature(int_bits_const)]
|
|
||||||
#![feature(maybe_uninit_array_assume_init)]
|
#![feature(maybe_uninit_array_assume_init)]
|
||||||
#![feature(maybe_uninit_uninit_array)]
|
#![feature(maybe_uninit_uninit_array)]
|
||||||
#![feature(maybe_uninit_slice)]
|
#![feature(maybe_uninit_slice)]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#![feature(int_bits_const)]
|
|
||||||
#![feature(maybe_uninit_slice)]
|
#![feature(maybe_uninit_slice)]
|
||||||
#![feature(maybe_uninit_uninit_array)]
|
#![feature(maybe_uninit_uninit_array)]
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,6 @@
|
||||||
#![feature(fn_traits)]
|
#![feature(fn_traits)]
|
||||||
#![feature(fundamental)]
|
#![feature(fundamental)]
|
||||||
#![feature(inplace_iteration)]
|
#![feature(inplace_iteration)]
|
||||||
#![feature(int_bits_const)]
|
|
||||||
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
|
// 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
|
// 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
|
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#![feature(binary_heap_retain)]
|
#![feature(binary_heap_retain)]
|
||||||
#![feature(inplace_iteration)]
|
#![feature(inplace_iteration)]
|
||||||
#![feature(iter_map_while)]
|
#![feature(iter_map_while)]
|
||||||
#![feature(int_bits_const)]
|
|
||||||
#![feature(vecdeque_binary_search)]
|
#![feature(vecdeque_binary_search)]
|
||||||
#![feature(slice_group_by)]
|
#![feature(slice_group_by)]
|
||||||
#![feature(slice_partition_dedup)]
|
#![feature(slice_partition_dedup)]
|
||||||
|
|
|
@ -32,10 +32,9 @@ macro_rules! int_impl {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(int_bits_const)]
|
|
||||||
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
|
#[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;
|
pub const BITS: u32 = $BITS;
|
||||||
|
|
||||||
/// Converts a string slice in a given base to an integer.
|
/// Converts a string slice in a given base to an integer.
|
||||||
|
|
|
@ -32,10 +32,9 @@ macro_rules! uint_impl {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(int_bits_const)]
|
|
||||||
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::BITS, ", stringify!($BITS), ");")]
|
#[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;
|
pub const BITS: u32 = $BITS;
|
||||||
|
|
||||||
/// Converts a string slice in a given base to an integer.
|
/// Converts a string slice in a given base to an integer.
|
||||||
|
|
|
@ -73,7 +73,6 @@
|
||||||
#![cfg_attr(not(bootstrap), feature(ptr_metadata))]
|
#![cfg_attr(not(bootstrap), feature(ptr_metadata))]
|
||||||
#![feature(once_cell)]
|
#![feature(once_cell)]
|
||||||
#![feature(unsized_tuple_coercion)]
|
#![feature(unsized_tuple_coercion)]
|
||||||
#![feature(int_bits_const)]
|
|
||||||
#![feature(nonzero_leading_trailing_zeros)]
|
#![feature(nonzero_leading_trailing_zeros)]
|
||||||
#![feature(const_option)]
|
#![feature(const_option)]
|
||||||
#![feature(integer_atomics)]
|
#![feature(integer_atomics)]
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/"
|
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/"
|
||||||
)]
|
)]
|
||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
#![feature(int_bits_const)]
|
|
||||||
#![feature(lang_items)]
|
#![feature(lang_items)]
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
#![feature(panic_unwind)]
|
#![feature(panic_unwind)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue