Skip to content

Commit a64f941

Browse files
Step bootstrap cfgs
1 parent 377c518 commit a64f941

File tree

44 files changed

+38
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+38
-282
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![doc(rust_logo)]
1212
#![allow(internal_features)]
1313
#![feature(rustdoc_internals)]
14-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
1514
#![feature(associated_type_defaults)]
1615
#![feature(box_patterns)]
1716
#![feature(if_let_guard)]

compiler/rustc_borrowck/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(rustdoc_internals)]
55
#![doc(rust_logo)]
66
#![feature(assert_matches)]
7-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
87
#![feature(box_patterns)]
98
#![feature(control_flow_enum)]
109
#![feature(let_chains)]

compiler/rustc_codegen_gcc/example/mini_core.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ pub fn panic(_msg: &'static str) -> ! {
420420

421421
macro_rules! panic_const {
422422
($($lang:ident = $message:expr,)+) => {
423-
#[cfg(not(bootstrap))]
424423
pub mod panic_const {
425424
use super::*;
426425

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
trusted_len,
2424
hash_raw_entry
2525
)]
26-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
2726
#![allow(broken_intra_doc_links)]
2827
#![recursion_limit = "256"]
2928
#![warn(rust_2018_idioms)]

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![allow(internal_features)]
55
#![allow(rustc::diagnostic_outside_of_impl)]
66
#![allow(rustc::untranslatable_diagnostic)]
7-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
87
#![feature(box_patterns)]
98
#![feature(if_let_guard)]
109
#![feature(let_chains)]

compiler/rustc_expand/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![doc(rust_logo)]
22
#![feature(rustdoc_internals)]
33
#![feature(array_windows)]
4-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
54
#![feature(associated_type_defaults)]
65
#![feature(if_let_guard)]
76
#![feature(let_chains)]

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#![allow(internal_features)]
1919
#![allow(rustc::diagnostic_outside_of_impl)]
2020
#![allow(rustc::untranslatable_diagnostic)]
21-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
2221
#![feature(box_patterns)]
2322
#![feature(control_flow_enum)]
2423
#![feature(extend_one)]

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
12611261
sess: &'a Session,
12621262
) -> impl Iterator<Item = ModChild> + 'a {
12631263
iter::from_coroutine(
1264-
#[cfg_attr(not(bootstrap), coroutine)]
1264+
#[coroutine]
12651265
move || {
12661266
if let Some(data) = &self.root.proc_macro_data {
12671267
// If we are loading as a proc macro, we want to return

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#![feature(coroutines)]
3838
#![feature(stmt_expr_attributes)]
3939
#![feature(if_let_guard)]
40-
#![cfg_attr(bootstrap, feature(inline_const))]
4140
#![feature(iter_from_coroutine)]
4241
#![feature(negative_impls)]
4342
#![feature(never_type)]
@@ -48,7 +47,6 @@
4847
#![feature(trusted_len)]
4948
#![feature(type_alias_impl_trait)]
5049
#![feature(strict_provenance)]
51-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
5250
#![feature(rustc_attrs)]
5351
#![feature(control_flow_enum)]
5452
#![feature(trait_upcasting)]

compiler/rustc_middle/src/ty/closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ pub fn analyze_coroutine_closure_captures<'a, 'tcx: 'a, T>(
424424
mut for_each: impl FnMut((usize, &'a CapturedPlace<'tcx>), (usize, &'a CapturedPlace<'tcx>)) -> T,
425425
) -> impl Iterator<Item = T> + Captures<'a> + Captures<'tcx> {
426426
std::iter::from_coroutine(
427-
#[cfg_attr(not(bootstrap), coroutine)]
427+
#[coroutine]
428428
move || {
429429
let mut child_captures = child_captures.into_iter().enumerate().peekable();
430430

0 commit comments

Comments
 (0)