diff options
| author | Loïc BRANSTETT <lolo.branstett@numericable.fr> | 2022-02-25 13:43:57 +0100 |
|---|---|---|
| committer | Loïc BRANSTETT <lolo.branstett@numericable.fr> | 2022-03-03 12:00:28 +0100 |
| commit | 50e61a1a667929d0db91132246e61c1a67ab07af (patch) | |
| tree | 6345cab4790dafc92ca209a9aafa7071967c5c4f /compiler/rustc_interface | |
| parent | 2f8d1a835b4e7feaf625f74d0d5cb9b84dbc845a (diff) | |
| download | rust-50e61a1a667929d0db91132246e61c1a67ab07af.tar.gz rust-50e61a1a667929d0db91132246e61c1a67ab07af.zip | |
Add support for values() with --check-cfg
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 7f4a4ffadec..e7563933c88 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -207,6 +207,9 @@ pub fn parse_check_cfg(specs: Vec<String>) -> CheckCfg { "`values()` first argument must be a simple identifer" ); } + } else if args.is_empty() { + cfg.well_known_values = true; + continue 'specs; } } } |
