Remove an unused piece of logic

This commit is contained in:
Oli Scherer 2024-09-08 14:43:12 +02:00
parent a0f57d87aa
commit 157dd83b63

View File

@ -315,8 +315,7 @@ fn main() -> Result<()> {
Ok(())
}
fn run_dep_mode(target: String, mut args: impl Iterator<Item = OsString>) -> Result<()> {
let path = args.next().expect("./miri run-dep must be followed by a file name");
fn run_dep_mode(target: String, args: impl Iterator<Item = OsString>) -> Result<()> {
let mut config = miri_config(
&target,
"",
@ -329,8 +328,6 @@ fn run_dep_mode(target: String, mut args: impl Iterator<Item = OsString>) -> Res
let mut cmd = config.program.build(&config.out_dir);
cmd.args(dep_args);
cmd.arg(path);
cmd.args(args);
if cmd.spawn()?.wait()?.success() { Ok(()) } else { std::process::exit(1) }
}