Add support for values() with --check-cfg

This commit is contained in:
Loïc BRANSTETT 2022-02-25 13:43:57 +01:00
parent 2f8d1a835b
commit 50e61a1a66
4 changed files with 13 additions and 5 deletions

View file

@ -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;
}
}
}