Skip to content

Commit 6fe74d9

Browse files
committed
if let stabilization PR
1 parent 1973872 commit 6fe74d9

File tree

69 files changed

+677
-92
lines changed

Some content is hidden

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

69 files changed

+677
-92
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
// tidy-alphabetical-start
88
#![allow(internal_features)]
9+
#![cfg_attr(bootstrap, feature(if_let_guard))]
910
#![cfg_attr(bootstrap, feature(let_chains))]
1011
#![doc(
1112
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
@@ -15,7 +16,6 @@
1516
#![feature(array_windows)]
1617
#![feature(associated_type_defaults)]
1718
#![feature(box_patterns)]
18-
#![feature(if_let_guard)]
1919
#![feature(negative_impls)]
2020
#![feature(never_type)]
2121
#![feature(rustdoc_internals)]

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
3333
// tidy-alphabetical-start
3434
#![allow(internal_features)]
35+
#![cfg_attr(bootstrap, feature(if_let_guard))]
3536
#![cfg_attr(bootstrap, feature(let_chains))]
3637
#![doc(rust_logo)]
3738
#![feature(assert_matches)]
3839
#![feature(box_patterns)]
3940
#![feature(exact_size_is_empty)]
40-
#![feature(if_let_guard)]
4141
#![feature(rustdoc_internals)]
4242
// tidy-alphabetical-end
4343

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
55
// tidy-alphabetical-start
66
#![allow(internal_features)]
7+
#![cfg_attr(bootstrap, feature(if_let_guard))]
78
#![cfg_attr(bootstrap, feature(let_chains))]
89
#![doc(rust_logo)]
910
#![feature(box_patterns)]
10-
#![feature(if_let_guard)]
1111
#![feature(iter_is_partitioned)]
1212
#![feature(rustdoc_internals)]
1313
// tidy-alphabetical-end

compiler/rustc_borrowck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
33
// tidy-alphabetical-start
44
#![allow(internal_features)]
5+
#![cfg_attr(bootstrap, feature(if_let_guard))]
56
#![cfg_attr(bootstrap, feature(let_chains))]
67
#![doc(rust_logo)]
78
#![feature(assert_matches)]
89
#![feature(box_patterns)]
910
#![feature(file_buffered)]
10-
#![feature(if_let_guard)]
1111
#![feature(negative_impls)]
1212
#![feature(never_type)]
1313
#![feature(rustc_attrs)]

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
#![allow(internal_features)]
66
#![allow(rustc::diagnostic_outside_of_impl)]
77
#![allow(rustc::untranslatable_diagnostic)]
8+
#![cfg_attr(bootstrap, feature(if_let_guard))]
89
#![cfg_attr(bootstrap, feature(let_chains))]
910
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1011
#![doc(rust_logo)]
1112
#![feature(assert_matches)]
1213
#![feature(autodiff)]
1314
#![feature(box_patterns)]
1415
#![feature(decl_macro)]
15-
#![feature(if_let_guard)]
1616
#![feature(proc_macro_internals)]
1717
#![feature(proc_macro_quote)]
1818
#![feature(rustdoc_internals)]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
77
// tidy-alphabetical-start
88
#![allow(internal_features)]
9+
#![cfg_attr(bootstrap, feature(if_let_guard))]
910
#![cfg_attr(bootstrap, feature(let_chains))]
1011
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1112
#![doc(rust_logo)]
1213
#![feature(assert_matches)]
1314
#![feature(exact_size_is_empty)]
1415
#![feature(extern_types)]
1516
#![feature(file_buffered)]
16-
#![feature(if_let_guard)]
1717
#![feature(impl_trait_in_assoc_type)]
1818
#![feature(iter_intersperse)]
1919
#![feature(rustdoc_internals)]

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
#![allow(internal_features)]
33
#![allow(rustc::diagnostic_outside_of_impl)]
44
#![allow(rustc::untranslatable_diagnostic)]
5+
#![cfg_attr(bootstrap, feature(if_let_guard))]
56
#![cfg_attr(bootstrap, feature(let_chains))]
67
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
78
#![doc(rust_logo)]
89
#![feature(assert_matches)]
910
#![feature(box_patterns)]
1011
#![feature(file_buffered)]
11-
#![feature(if_let_guard)]
1212
#![feature(negative_impls)]
1313
#![feature(rustdoc_internals)]
1414
#![feature(string_from_utf8_lossy_owned)]

compiler/rustc_const_eval/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
33
#![allow(rustc::diagnostic_outside_of_impl)]
4+
#![cfg_attr(bootstrap, feature(if_let_guard))]
45
#![cfg_attr(bootstrap, feature(let_chains))]
56
#![doc(rust_logo)]
67
#![feature(assert_matches)]
78
#![feature(box_patterns)]
89
#![feature(decl_macro)]
9-
#![feature(if_let_guard)]
1010
#![feature(never_type)]
1111
#![feature(rustdoc_internals)]
1212
#![feature(slice_ptr_get)]

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![allow(internal_features)]
88
#![allow(rustc::diagnostic_outside_of_impl)]
99
#![allow(rustc::untranslatable_diagnostic)]
10+
#![cfg_attr(bootstrap, feature(if_let_guard))]
1011
#![cfg_attr(bootstrap, feature(let_chains))]
1112
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1213
#![doc(rust_logo)]
@@ -17,7 +18,6 @@
1718
#![feature(box_patterns)]
1819
#![feature(default_field_values)]
1920
#![feature(error_reporter)]
20-
#![feature(if_let_guard)]
2121
#![feature(negative_impls)]
2222
#![feature(never_type)]
2323
#![feature(rustc_attrs)]

compiler/rustc_expand/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
33
#![allow(rustc::diagnostic_outside_of_impl)]
4+
#![cfg_attr(bootstrap, feature(if_let_guard))]
45
#![cfg_attr(bootstrap, feature(let_chains))]
56
#![doc(rust_logo)]
67
#![feature(array_windows)]
78
#![feature(associated_type_defaults)]
8-
#![feature(if_let_guard)]
99
#![feature(macro_metavar_expr)]
1010
#![feature(map_try_insert)]
1111
#![feature(proc_macro_diagnostic)]

0 commit comments

Comments
 (0)