From 50e61a1a667929d0db91132246e61c1a67ab07af Mon Sep 17 00:00:00 2001 From: Loïc BRANSTETT Date: Fri, 25 Feb 2022 13:43:57 +0100 Subject: Add support for values() with --check-cfg --- compiler/rustc_interface/src/interface.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/rustc_interface/src') 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) -> CheckCfg { "`values()` first argument must be a simple identifer" ); } + } else if args.is_empty() { + cfg.well_known_values = true; + continue 'specs; } } } -- cgit 1.4.1-3-g733a5