Skip to content

Commit

Permalink
Fix some incorrect replacements in rustc args
Browse files Browse the repository at this point in the history
  • Loading branch information
valadaptive committed May 4, 2024
1 parent 27e81bc commit 4149c00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/rustfix/tests/parse_and_replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn compile(file: &Path) -> Result<Output, Error> {
"--error-format=json".into(),
"--emit=metadata".into(),
"--crate-name=rustfix_test".into(),
"--artifact-dir".into(),
"--out-dir".into(),
tmp.path().into(),
];

Expand Down
2 changes: 1 addition & 1 deletion crates/semver-check/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fn compile(
crate_type,
"--crate-name",
crate_name,
"--artifact-dir",
"--out-dir",
]);
cmd.arg(&out_dir);
if extern_path {
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ fn build_base_args(
cmd.arg("-C").arg("rpath");
}

cmd.arg("--artifact-dir")
cmd.arg("--out-dir")
.arg(&build_runner.files().out_dir(unit));

fn opt(cmd: &mut ProcessBuilder, key: &str, prefix: &str, val: Option<&OsStr>) {
Expand Down

0 comments on commit 4149c00

Please sign in to comment.