diff options
| author | Urgau <urgau@numericable.fr> | 2023-05-01 14:17:56 +0200 | 
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-10-13 13:34:21 +0200 | 
| commit | e5e95eba457b17a1f8005403fa0287e1cd8d82f3 (patch) | |
| tree | 9cb5a4e065201ae300016981179cd0e449a127cc /compiler/rustc_interface/src/lib.rs | |
| parent | a4a10bdf29a13b8773948c8938d2af47c03becb9 (diff) | |
| download | rust-e5e95eba457b17a1f8005403fa0287e1cd8d82f3.tar.gz rust-e5e95eba457b17a1f8005403fa0287e1cd8d82f3.zip | |
MCP636: Add simpler and more explicit syntax to check-cfg
This add a new form and deprecated the other ones:
 - cfg(name1, ..., nameN, values("value1", "value2", ... "valueN"))
 - cfg(name1, ..., nameN) or cfg(name1, ..., nameN, values())
 - cfg(any())
It also changes the default exhaustiveness to be enable-by-default in
the presence of any --check-cfg arguments.
Diffstat (limited to 'compiler/rustc_interface/src/lib.rs')
| -rw-r--r-- | compiler/rustc_interface/src/lib.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/compiler/rustc_interface/src/lib.rs b/compiler/rustc_interface/src/lib.rs index 76131c1ad69..ffa2667a351 100644 --- a/compiler/rustc_interface/src/lib.rs +++ b/compiler/rustc_interface/src/lib.rs @@ -3,6 +3,7 @@ #![feature(internal_output_capture)] #![feature(thread_spawn_unchecked)] #![feature(lazy_cell)] +#![feature(let_chains)] #![feature(try_blocks)] #![recursion_limit = "256"] #![allow(rustc::potential_query_instability)] | 
