Skip to content

Commit 013130c

Browse files
authored
Merge pull request #18968 from Veykril/push-szvltqqttsyy
fix: `cargo rustc --print` needs `unstable-options`
2 parents 6c1b1a1 + 5f117b4 commit 013130c

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/project-model/src/toolchain_info

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/project-model/src/toolchain_info/rustc_cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn rustc_print_cfg(
6666
QueryConfig::Cargo(sysroot, cargo_toml) => {
6767
let mut cmd = sysroot.tool(Tool::Cargo, cargo_toml.parent());
6868
cmd.envs(extra_env);
69-
cmd.args(["rustc"]).args(RUSTC_ARGS);
69+
cmd.args(["rustc", "-Z", "unstable-options"]).args(RUSTC_ARGS);
7070
if let Some(target) = target {
7171
cmd.args(["--target", target]);
7272
}

0 commit comments

Comments
 (0)