diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-07-31 23:39:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-31 23:39:38 +0200 |
| commit | e820ecdba115e56d3d1cb0df169463a23a28fabd (patch) | |
| tree | 37b65f75c372f11543405fc80fe66fcc2a02bfc3 /compiler/rustc_interface/src | |
| parent | 3405e402faf413ef4633142225228c260a91dd9d (diff) | |
| parent | ebf4cc361e0d0f11a25b42372bd629953365d17e (diff) | |
| download | rust-e820ecdba115e56d3d1cb0df169463a23a28fabd.tar.gz rust-e820ecdba115e56d3d1cb0df169463a23a28fabd.zip | |
Rollup merge of #99519 - Urgau:check-cfg-implicit, r=petrochenkov
Remove implicit names and values from `--cfg` in `--check-cfg` This PR remove the implicit names and values from `--cfg` in `--check-cfg` because the behavior is quite surprising but also because it's really easy to inadvertently really on the implicitness and when the `--cfg` is not set anymore to have an unexpected warning from an unexpected condition that pass with the implicitness. This change in behavior will also enable us to warn when an unexpected `--cfg` is passed, ex: the user wrote `--cfg=unstabl` instead of `--cfg=unstable`. The implementation of the warning will be done in a follow-up PR. cc `@petrochenkov`
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/util.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 4c64e679b95..5e5596f13c8 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -117,7 +117,6 @@ pub fn create_session( let mut check_cfg = config::to_crate_check_config(check_cfg); check_cfg.fill_well_known(); - check_cfg.fill_actual(&cfg); sess.parse_sess.config = cfg; sess.parse_sess.check_config = check_cfg; |
