You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #12845 - Urgau:check-cfg-adjust-for-rustc, r=epage
Adjust `-Zcheck-cfg` for new rustc syntax and behavior
rust-lang/rust#111072 introduced a new syntax for `rustc` `--check-cfg` argument. This PR adjust cargo `-Zcheck-cfg` for new that new syntax and behavior.
This PR removes all the `-Zcheck-cfg` options (`features`, `names`, `values`, `output`), as they don't make much sense now since with the new `rustc` behavior: `features`, `names` and `values` are all combine together and the `output` option was only here because the other were.
Now the new behavior from cargo is to always pass one `--check-cfg` argument to rustc for the `feature`s which implicitly enables well known names and values.
check_cfg:Option<(/*features:*/bool,/*well_known_names:*/bool,/*well_known_values:*/bool,/*output:*/bool)> = ("Specify scope of compile-time checking of `cfg` names/values"),
734
+
check_cfg:bool = ("Enable compile-time checking of `cfg` names/values/features"),
736
735
codegen_backend:bool = ("Enable the `codegen-backend` option in profiles in .cargo/config.toml file"),
737
736
config_include:bool = ("Enable the `include` key in config files"),
738
737
direct_minimal_versions:bool = ("Resolve minimal dependency versions instead of maximum (direct dependencies only)"),
0 commit comments