Skip to content

Commit 0c0025f

Browse files
committed
Auto merge of rust-lang#14647 - whentojump:patch-1, r=Veykril
fix: remove extra argument "rustc" Two extra "rustc"s were accidentally introduced [here](rust-lang/rust-analyzer@33591cd#diff-53e4b6b2c1ff2465d8abd50db160753199426fd788ddcad925752e0838e28de2R156-R169). (I guess because `cmd` is sometimes initialized with a `cargo` under the hood, sometimes `rustc`, thus error-prone?) One of them has been fixed [here](rust-lang/rust-analyzer@384fa4b#diff-35c78d76dfccbcece2c917b1e5b9a8e0951d5e340cf579e5ce4951142e2077d3R32). This patch fixes the other.
2 parents 15ef5f5 + 59c4cc3 commit 0c0025f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/project-model/src/target_data_layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn get(
1616
let mut cmd = Command::new(toolchain::rustc());
1717
cmd.envs(extra_env);
1818
cmd.current_dir(cargo_toml.parent())
19-
.args(["-Z", "unstable-options", "rustc", "--print", "target-spec-json"])
19+
.args(["-Z", "unstable-options", "--print", "target-spec-json"])
2020
.env("RUSTC_BOOTSTRAP", "1");
2121
if let Some(target) = target {
2222
cmd.args(["--target", target]);

0 commit comments

Comments
 (0)