Skip to content

Commit 969f157

Browse files
Rollup merge of #142194 - bjorn3:less_unstable_features, r=jieyouxu
Remove all unused feature gates from the compiler
2 parents 1ef5f19 + 9223704 commit 969f157

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;

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#![doc(rust_logo)]
2121
#![feature(assert_matches)]
2222
#![feature(extend_one)]
23-
#![feature(iterator_try_collect)]
2423
#![feature(rustdoc_internals)]
2524
#![recursion_limit = "512"] // For rustdoc
2625
// tidy-alphabetical-end

compiler/rustc_macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![feature(if_let_guard)]
44
#![feature(never_type)]
55
#![feature(proc_macro_diagnostic)]
6-
#![feature(proc_macro_span)]
76
#![feature(proc_macro_tracked_env)]
87
// tidy-alphabetical-end
98

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#![feature(round_char_boundary)]
5555
#![feature(rustc_attrs)]
5656
#![feature(rustdoc_internals)]
57-
#![feature(trusted_len)]
5857
#![feature(try_blocks)]
5958
#![feature(try_trait_v2)]
6059
#![feature(try_trait_v2_yeet)]

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
#![feature(file_buffered)]
88
#![feature(if_let_guard)]
99
#![feature(impl_trait_in_assoc_type)]
10-
#![feature(map_try_insert)]
11-
#![feature(never_type)]
1210
#![feature(try_blocks)]
13-
#![feature(vec_deque_pop_if)]
1411
#![feature(yeet_expr)]
1512
// tidy-alphabetical-end
1613

compiler/rustc_parse/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#![feature(debug_closure_helpers)]
1010
#![feature(if_let_guard)]
1111
#![feature(iter_intersperse)]
12-
#![feature(string_from_utf8_lossy_owned)]
1312
#![recursion_limit = "256"]
1413
// tidy-alphabetical-end
1514

compiler/rustc_passes/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
#![allow(internal_features)]
99
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1010
#![doc(rust_logo)]
11-
#![feature(box_patterns)]
1211
#![feature(map_try_insert)]
1312
#![feature(rustdoc_internals)]
14-
#![feature(try_blocks)]
1513
// tidy-alphabetical-end
1614

1715
use rustc_middle::util::Providers;

compiler/rustc_query_system/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![allow(internal_features)]
33
#![feature(assert_matches)]
44
#![feature(core_intrinsics)]
5-
#![feature(dropck_eyepatch)]
65
#![feature(min_specialization)]
76
// tidy-alphabetical-end
87

compiler/rustc_span/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#![doc(rust_logo)]
2424
#![feature(array_windows)]
2525
#![feature(core_io_borrowed_buf)]
26-
#![feature(hash_set_entry)]
2726
#![feature(if_let_guard)]
2827
#![feature(map_try_insert)]
2928
#![feature(negative_impls)]

compiler/rustc_target/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
#![allow(internal_features)]
1212
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1313
#![doc(rust_logo)]
14-
#![feature(assert_matches)]
1514
#![feature(debug_closure_helpers)]
1615
#![feature(iter_intersperse)]
17-
#![feature(rustc_attrs)]
1816
#![feature(rustdoc_internals)]
1917
// tidy-alphabetical-end
2018

compiler/rustc_trait_selection/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@
1919
#![feature(assert_matches)]
2020
#![feature(associated_type_defaults)]
2121
#![feature(box_patterns)]
22-
#![feature(cfg_version)]
2322
#![feature(if_let_guard)]
2423
#![feature(iter_intersperse)]
2524
#![feature(iterator_try_reduce)]
2625
#![feature(never_type)]
2726
#![feature(rustdoc_internals)]
2827
#![feature(try_blocks)]
29-
#![feature(type_alias_impl_trait)]
3028
#![feature(unwrap_infallible)]
3129
#![feature(yeet_expr)]
3230
#![recursion_limit = "512"] // For rustdoc

0 commit comments

Comments
 (0)