Skip to content

Commit

Permalink
Merge pull request #18968 from Veykril/push-szvltqqttsyy
Browse files Browse the repository at this point in the history
fix: `cargo rustc --print` needs `unstable-options`
  • Loading branch information
Veykril authored Jan 18, 2025
2 parents f61bfa4 + 0f7b85a commit 2cd26fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project-model/src/toolchain_info/rustc_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 2cd26fd

Please sign in to comment.