Skip to content

Commit 5f117b4

Browse files
committed
fix: cargo rustc --print needs unstable-options
1 parent fa71da9 commit 5f117b4

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)