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 #10799 - Urgau:check-cfg-fix-config-deserialization, r=ehuss
Fix deserialization of check-cfg in config.toml
When improving the check-cfg implementation in #10566 I changed the internal representation of `check_cfg` from multiple `bool` options to one `Option<(bool, bool, bool, bool)>` but I didn't realize until rust-lang/rust#82450 (comment) that the internal representation is actually somewhat public as it's used in the `[unstable]` in `.cargo/config.toml`.
And because TOML cannot represent tuples there is no way to set it from the `[unstable]` section. This PR fix this oversight by using a custom deserializer method similar to what was already done for `build-std`.
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"),
645
646
doctest_in_workspace:bool = ("Compile doctests with paths relative to the workspace root"),
646
647
doctest_xcompile:bool = ("Compile and run doctests for non-host target using runner config"),
0 commit comments