1
Fork 0

Merge pull request #18968 from Veykril/push-szvltqqttsyy

fix: `cargo rustc --print` needs `unstable-options`
This commit is contained in:
Lukas Wirth 2025-01-18 11:21:03 +00:00 committed by GitHub
commit 013130c22c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ fn rustc_print_cfg(
QueryConfig::Cargo(sysroot, cargo_toml) => {
let mut cmd = sysroot.tool(Tool::Cargo, cargo_toml.parent());
cmd.envs(extra_env);
cmd.args(["rustc"]).args(RUSTC_ARGS);
cmd.args(["rustc", "-Z", "unstable-options"]).args(RUSTC_ARGS);
if let Some(target) = target {
cmd.args(["--target", target]);
}