Skip to content

Commit 940a436

Browse files
Rollup merge of rust-lang#142194 - bjorn3:less_unstable_features, r=jieyouxu
Remove all unused feature gates from the compiler
2 parents 29ef4c8 + 9223704 commit 940a436

File tree

20 files changed

+1
-28
lines changed

20 files changed

+1
-28
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
// tidy-alphabetical-start
3434
#![allow(internal_features)]
3535
#![doc(rust_logo)]
36-
#![feature(assert_matches)]
3736
#![feature(box_patterns)]
38-
#![feature(exact_size_is_empty)]
3937
#![feature(if_let_guard)]
4038
#![feature(rustdoc_internals)]
4139
// tidy-alphabetical-end

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#![feature(proc_macro_internals)]
1616
#![feature(proc_macro_quote)]
1717
#![feature(rustdoc_internals)]
18-
#![feature(string_from_utf8_lossy_owned)]
1918
#![feature(try_blocks)]
2019
#![recursion_limit = "256"]
2120
// tidy-alphabetical-end

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![allow(internal_features)]
1717
#![doc(rust_logo)]
1818
#![feature(rustdoc_internals)]
19-
#![feature(rustc_private, decl_macro, never_type, trusted_len)]
19+
#![feature(rustc_private)]
2020
#![allow(broken_intra_doc_links)]
2121
#![recursion_limit = "256"]
2222
#![warn(rust_2018_idioms)]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1010
#![doc(rust_logo)]
1111
#![feature(assert_matches)]
12-
#![feature(exact_size_is_empty)]
1312
#![feature(extern_types)]
1413
#![feature(file_buffered)]
1514
#![feature(if_let_guard)]

compiler/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#![feature(dropck_eyepatch)]
2626
#![feature(extend_one)]
2727
#![feature(file_buffered)]
28-
#![feature(macro_metavar_expr)]
2928
#![feature(map_try_insert)]
3029
#![feature(min_specialization)]
3130
#![feature(negative_impls)]

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
#![feature(box_patterns)]
1616
#![feature(default_field_values)]
1717
#![feature(error_reporter)]
18-
#![feature(if_let_guard)]
1918
#![feature(negative_impls)]
2019
#![feature(never_type)]
2120
#![feature(rustc_attrs)]
2221
#![feature(rustdoc_internals)]
23-
#![feature(trait_alias)]
2422
#![feature(try_blocks)]
2523
#![feature(yeet_expr)]
2624
// tidy-alphabetical-end

compiler/rustc_expand/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#![feature(associated_type_defaults)]
77
#![feature(if_let_guard)]
88
#![feature(macro_metavar_expr)]
9-
#![feature(map_try_insert)]
109
#![feature(proc_macro_diagnostic)]
1110
#![feature(proc_macro_internals)]
1211
#![feature(rustdoc_internals)]

compiler/rustc_fluent_macro/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
55
#![doc(rust_logo)]
66
#![feature(proc_macro_diagnostic)]
7-
#![feature(proc_macro_span)]
87
#![feature(rustdoc_internals)]
98
#![feature(track_path)]
109
// tidy-alphabetical-end

compiler/rustc_hir/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// tidy-alphabetical-start
66
#![allow(internal_features)]
77
#![feature(associated_type_defaults)]
8-
#![feature(box_patterns)]
98
#![feature(closure_track_caller)]
109
#![feature(debug_closure_helpers)]
1110
#![feature(exhaustive_patterns)]

compiler/rustc_hir_typeck/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
// tidy-alphabetical-start
22
#![allow(rustc::diagnostic_outside_of_impl)]
33
#![allow(rustc::untranslatable_diagnostic)]
4-
#![feature(array_windows)]
54
#![feature(assert_matches)]
65
#![feature(box_patterns)]
76
#![feature(if_let_guard)]
87
#![feature(iter_intersperse)]
98
#![feature(never_type)]
10-
#![feature(try_blocks)]
119
// tidy-alphabetical-end
1210

1311
mod _match;

0 commit comments

Comments
 (0)