File tree Expand file tree Collapse file tree 6 files changed +8
-15
lines changed Expand file tree Collapse file tree 6 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ extern "rust-intrinsic" {
1072
1072
// NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
1073
1073
// checks that prevent its use within `const fn`.
1074
1074
#[rustc_const_stable(feature = "const_transmute", since = "1.46.0")]
1075
- #[cfg_attr(not(bootstrap), rustc_diagnostic_item = "transmute") ]
1075
+ #[rustc_diagnostic_item = "transmute"]
1076
1076
pub fn transmute<T, U>(e: T) -> U;
1077
1077
1078
1078
/// Returns `true` if the actual type given as `T` requires drop
Original file line number Diff line number Diff line change 84
84
#![feature(const_fn_union)]
85
85
#![feature(const_assume)]
86
86
#![cfg_attr(not(bootstrap), feature(const_impl_trait))]
87
- #![cfg_attr(not(bootstrap), feature(const_fn_floating_point_arithmetic) )]
88
- #![cfg_attr(not(bootstrap), feature(const_fn_fn_ptr_basics) )]
87
+ #![feature(const_fn_floating_point_arithmetic)]
88
+ #![feature(const_fn_fn_ptr_basics)]
89
89
#![feature(const_generics)]
90
90
#![feature(const_option)]
91
91
#![feature(const_precise_live_drops)]
133
133
#![feature(untagged_unions)]
134
134
#![feature(unwind_attributes)]
135
135
#![feature(variant_count)]
136
- #![cfg_attr(bootstrap, feature(doc_alias))]
137
136
#![feature(tbm_target_feature)]
138
137
#![feature(sse4a_target_feature)]
139
138
#![feature(arm_target_feature)]
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ pub use index::check_range;
79
79
#[lang = "slice"]
80
80
#[cfg(not(test))]
81
81
impl<T> [T] {
82
- #[cfg(not(bootstrap))] // Unused in bootstrap
83
82
/// The maximum, inclusive, length such that the slice is no larger than `isize::MAX` bytes.
84
83
/// This constant is used in `len` below.
85
84
const MAX_LEN_BOUND: usize = {
@@ -108,15 +107,12 @@ impl<T> [T] {
108
107
// Only `std` can make this guarantee.
109
108
let raw_len = unsafe { crate::ptr::Repr { rust: self }.raw.len };
110
109
111
- #[cfg(not(bootstrap))] // FIXME: executing assume in const eval not supported in bootstrap
112
110
// SAFETY: this assume asserts that `raw_len * size_of::<T>() <= isize::MAX`. All
113
111
// references must point to one allocation with size at most isize::MAX. Note that we the
114
112
// multiplication could appear to overflow until we have assumed the bound. This overflow
115
113
// would make additional values appear 'valid' and then `n > 1` the range of permissible
116
114
// length would no longer be the full or even a single range.
117
- unsafe {
118
- crate::intrinsics::assume(raw_len <= Self::MAX_LEN_BOUND)
119
- };
115
+ unsafe { crate::intrinsics::assume(raw_len <= Self::MAX_LEN_BOUND) };
120
116
121
117
raw_len
122
118
}
Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ impl RawWakerVTable {
130
130
#[rustc_promotable]
131
131
#[stable(feature = "futures_api", since = "1.36.0")]
132
132
#[rustc_const_stable(feature = "futures_api", since = "1.36.0")]
133
- #[cfg_attr(not(bootstrap), allow_internal_unstable(const_fn_fn_ptr_basics))]
134
- #[cfg_attr(bootstrap, rustc_allow_const_fn_ptr)]
133
+ #[allow_internal_unstable(const_fn_fn_ptr_basics)]
135
134
pub const fn new(
136
135
clone: unsafe fn(*const ()) -> RawWaker,
137
136
wake: unsafe fn(*const ()),
Original file line number Diff line number Diff line change 21
21
#![feature(nll)]
22
22
#![feature(staged_api)]
23
23
#![feature(const_fn)]
24
- #![cfg_attr(not(bootstrap), feature(const_fn_fn_ptr_basics) )]
24
+ #![feature(const_fn_fn_ptr_basics)]
25
25
#![feature(allow_internal_unstable)]
26
26
#![feature(decl_macro)]
27
27
#![feature(extern_types)]
Original file line number Diff line number Diff line change 237
237
#![feature(clamp)]
238
238
#![feature(concat_idents)]
239
239
#![feature(const_cstr_unchecked)]
240
- #![cfg_attr(not(bootstrap), feature(const_fn_floating_point_arithmetic) )]
240
+ #![feature(const_fn_floating_point_arithmetic)]
241
241
#![feature(const_fn_transmute)]
242
242
#![feature(const_fn)]
243
- #![cfg_attr(not(bootstrap), feature(const_fn_fn_ptr_basics) )]
243
+ #![feature(const_fn_fn_ptr_basics)]
244
244
#![feature(const_ip)]
245
245
#![feature(const_ipv6)]
246
246
#![feature(const_raw_ptr_deref)]
249
249
#![feature(core_intrinsics)]
250
250
#![feature(custom_test_frameworks)]
251
251
#![feature(decl_macro)]
252
- #![cfg_attr(bootstrap, feature(doc_alias))]
253
252
#![feature(doc_cfg)]
254
253
#![feature(doc_keyword)]
255
254
#![feature(doc_masked)]
You can’t perform that action at this time.
0 commit comments