diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-23 17:02:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 17:02:03 +0100 |
| commit | 26cb6c728736ba9c582cbde761d9d9fd10ff74b9 (patch) | |
| tree | 95148bf4d97145d6709c8d16b8dac18d0d13100c /compiler/rustc_target/src | |
| parent | 52cea084bd5bbac12ecfa5c0499f5c777025c968 (diff) | |
| parent | 8e83d0cd7530ee0421a6b91562c820101123edd5 (diff) | |
| download | rust-26cb6c728736ba9c582cbde761d9d9fd10ff74b9.tar.gz rust-26cb6c728736ba9c582cbde761d9d9fd10ff74b9.zip | |
Rollup merge of #120742 - Nadrieril:use-min_exh_pats, r=compiler-errors
mark `min_exhaustive_patterns` as complete This is step 1 and 2 of my [proposal](https://github.com/rust-lang/rust/issues/119612#issuecomment-1918097361) to move `min_exhaustive_patterns` forward. The vast majority of in-tree use cases of `exhaustive_patterns` are covered by `min_exhaustive_patterns`. There are a few cases that still require `exhaustive_patterns` in tests and they're all behind references. r? ``@ghost``
Diffstat (limited to 'compiler/rustc_target/src')
| -rw-r--r-- | compiler/rustc_target/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/lib.rs b/compiler/rustc_target/src/lib.rs index 04c5e60aa6b..8019d2b80cd 100644 --- a/compiler/rustc_target/src/lib.rs +++ b/compiler/rustc_target/src/lib.rs @@ -9,9 +9,10 @@ #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] #![doc(rust_logo)] +#![cfg_attr(bootstrap, feature(exhaustive_patterns))] +#![cfg_attr(not(bootstrap), feature(min_exhaustive_patterns))] #![feature(rustdoc_internals)] #![feature(assert_matches)] -#![feature(exhaustive_patterns)] #![feature(iter_intersperse)] #![feature(let_chains)] #![cfg_attr(bootstrap, feature(min_specialization))] |
