Skip to content

Commit f4dd6c2

Browse files
committed
Remove feature gate from std and compiler
1 parent b6af6b5 commit f4dd6c2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_middle/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2626
#![doc(rust_logo)]
27-
#![feature(min_exhaustive_patterns)]
27+
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns))]
2828
#![feature(rustdoc_internals)]
2929
#![feature(allocator_api)]
3030
#![feature(array_windows)]

compiler/rustc_target/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1111
#![doc(rust_logo)]
12-
#![feature(min_exhaustive_patterns)]
12+
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns))]
1313
#![feature(rustdoc_internals)]
1414
#![feature(assert_matches)]
1515
#![feature(iter_intersperse)]

library/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
//
205205
// Language features:
206206
// tidy-alphabetical-start
207+
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns))]
207208
#![feature(abi_unadjusted)]
208209
#![feature(adt_const_params)]
209210
#![feature(allow_internal_unsafe)]
@@ -239,7 +240,6 @@
239240
#![feature(let_chains)]
240241
#![feature(link_llvm_intrinsics)]
241242
#![feature(macro_metavar_expr)]
242-
#![feature(min_exhaustive_patterns)]
243243
#![feature(min_specialization)]
244244
#![feature(multiple_supertrait_upcastable)]
245245
#![feature(must_not_suspend)]

library/std/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
//
271271
// Language features:
272272
// tidy-alphabetical-start
273+
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns))]
273274
#![feature(alloc_error_handler)]
274275
#![feature(allocator_internals)]
275276
#![feature(allow_internal_unsafe)]
@@ -294,7 +295,6 @@
294295
#![feature(let_chains)]
295296
#![feature(link_cfg)]
296297
#![feature(linkage)]
297-
#![feature(min_exhaustive_patterns)]
298298
#![feature(min_specialization)]
299299
#![feature(must_not_suspend)]
300300
#![feature(needs_panic_runtime)]

0 commit comments

Comments
 (0)