Skip to content

Commit 173eb6f

Browse files
committed
Only enable the let_else feature on bootstrap
On later stages, the feature is already stable. Result of running: rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
1 parent 5633e86 commit 173eb6f

File tree

43 files changed

+43
-43
lines changed

Some content is hidden

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

43 files changed

+43
-43
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#![feature(if_let_guard)]
1616
#![cfg_attr(bootstrap, feature(label_break_value))]
1717
#![feature(let_chains)]
18-
#![feature(let_else)]
18+
#![cfg_attr(bootstrap, feature(let_else))]
1919
#![feature(min_specialization)]
2020
#![feature(negative_impls)]
2121
#![feature(slice_internals)]

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
#![feature(box_patterns)]
3434
#![feature(let_chains)]
35-
#![feature(let_else)]
35+
#![cfg_attr(bootstrap, feature(let_else))]
3636
#![feature(never_type)]
3737
#![recursion_limit = "256"]
3838
#![allow(rustc::potential_query_instability)]

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#![feature(if_let_guard)]
1010
#![feature(iter_is_partitioned)]
1111
#![feature(let_chains)]
12-
#![feature(let_else)]
12+
#![cfg_attr(bootstrap, feature(let_else))]
1313
#![recursion_limit = "256"]
1414

1515
#[macro_use]

compiler/rustc_attr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! to this crate.
66
77
#![feature(let_chains)]
8-
#![feature(let_else)]
8+
#![cfg_attr(bootstrap, feature(let_else))]
99
#![deny(rustc::untranslatable_diagnostic)]
1010
#![deny(rustc::diagnostic_outside_of_impl)]
1111

compiler/rustc_borrowck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(rustc::potential_query_instability)]
44
#![feature(box_patterns)]
55
#![feature(let_chains)]
6-
#![feature(let_else)]
6+
#![cfg_attr(bootstrap, feature(let_else))]
77
#![feature(min_specialization)]
88
#![feature(never_type)]
99
#![feature(rustc_attrs)]

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#![feature(if_let_guard)]
1010
#![feature(is_sorted)]
1111
#![feature(let_chains)]
12-
#![feature(let_else)]
12+
#![cfg_attr(bootstrap, feature(let_else))]
1313
#![feature(proc_macro_internals)]
1414
#![feature(proc_macro_quote)]
1515
#![recursion_limit = "256"]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
88
#![feature(hash_raw_entry)]
99
#![feature(let_chains)]
10-
#![feature(let_else)]
10+
#![cfg_attr(bootstrap, feature(let_else))]
1111
#![feature(extern_types)]
1212
#![feature(once_cell)]
1313
#![feature(iter_intersperse)]

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
22
#![feature(box_patterns)]
33
#![feature(try_blocks)]
4-
#![feature(let_else)]
4+
#![cfg_attr(bootstrap, feature(let_else))]
55
#![feature(once_cell)]
66
#![feature(associated_type_bounds)]
77
#![feature(strict_provenance)]

compiler/rustc_const_eval/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Rust MIR: a lowered representation of Rust.
1010
#![feature(decl_macro)]
1111
#![feature(exact_size_is_empty)]
1212
#![feature(let_chains)]
13-
#![feature(let_else)]
13+
#![cfg_attr(bootstrap, feature(let_else))]
1414
#![feature(map_try_insert)]
1515
#![feature(min_specialization)]
1616
#![feature(slice_ptr_get)]

compiler/rustc_data_structures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#![feature(cell_leak)]
1414
#![feature(control_flow_enum)]
1515
#![feature(extend_one)]
16-
#![feature(let_else)]
16+
#![cfg_attr(bootstrap, feature(let_else))]
1717
#![feature(hash_raw_entry)]
1818
#![feature(hasher_prefixfree_extras)]
1919
#![feature(maybe_uninit_uninit_array)]

0 commit comments

Comments
 (0)