Skip to content

Commit 4149c00

Browse files
committed
Fix some incorrect replacements in rustc args
1 parent 27e81bc commit 4149c00

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/rustfix/tests/parse_and_replace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn compile(file: &Path) -> Result<Output, Error> {
5353
"--error-format=json".into(),
5454
"--emit=metadata".into(),
5555
"--crate-name=rustfix_test".into(),
56-
"--artifact-dir".into(),
56+
"--out-dir".into(),
5757
tmp.path().into(),
5858
];
5959

crates/semver-check/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ fn compile(
190190
crate_type,
191191
"--crate-name",
192192
crate_name,
193-
"--artifact-dir",
193+
"--out-dir",
194194
]);
195195
cmd.arg(&out_dir);
196196
if extern_path {

src/cargo/core/compiler/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ fn build_base_args(
11371137
cmd.arg("-C").arg("rpath");
11381138
}
11391139

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

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

0 commit comments

Comments
 (0)