We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--target-dir
1 parent 8f87903 commit 1692932Copy full SHA for 1692932
cargo-miri/bin.rs
@@ -572,7 +572,12 @@ fn phase_cargo_miri(mut args: env::Args) {
572
// Forward all arguments before `--` other than `--target-dir` and its value to Cargo.
573
for arg in ArgSplitFlagValue::new(&mut args, "--target-dir") {
574
match arg {
575
- Ok(value) => target_dir = Some(value.into()),
+ Ok(value) => {
576
+ if target_dir.is_some() {
577
+ show_error(format!("`--target-dir` is provided more than once"));
578
+ }
579
+ target_dir = Some(value.into());
580
581
Err(arg) => drop(cmd.arg(arg)),
582
}
583
0 commit comments