Skip to content

Commit ed3b049

Browse files
authored
Rollup merge of #120866 - Zalathar:no-min-spec, r=compiler-errors
Remove unnecessary `#![feature(min_specialization)]` As of #119963 and #120676, we can now rely on `newtype_index!` having `#[allow_internal_unstable(min_specialization)]`, so there are a few compiler crates that no longer need to include min-spec in their own crate features. --- Some of the expansions of `newtype_index!` still appear to require min-spec in the crate features. I think this is because `#[orderable]` causes the expansion to include an implementation of `TrustedStep`, which is flagged with `#[rustc_specialization_trait]`, and for whatever reason that isn't permitted by allow-internal-unstable. So this PR only touches the crates where that isn't the case.
2 parents 9a8958f + cf1096e commit ed3b049

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

compiler/rustc_codegen_llvm/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![feature(hash_raw_entry)]
1414
#![feature(iter_intersperse)]
1515
#![feature(let_chains)]
16-
#![feature(min_specialization)]
1716
#![feature(impl_trait_in_assoc_type)]
1817

1918
#[macro_use]

compiler/rustc_lint/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#![feature(iter_order_by)]
3636
#![feature(let_chains)]
3737
#![feature(trait_upcasting)]
38-
#![feature(min_specialization)]
3938
#![feature(rustc_attrs)]
4039
#![allow(internal_features)]
4140

compiler/rustc_lint_defs/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(min_specialization)]
2-
31
#[macro_use]
42
extern crate rustc_macros;
53

compiler/rustc_passes/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![allow(internal_features)]
1111
#![feature(let_chains)]
1212
#![feature(map_try_insert)]
13-
#![feature(min_specialization)]
1413
#![feature(try_blocks)]
1514

1615
#[macro_use]

0 commit comments

Comments
 (0)