diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 187db436fcb..1b8c7a9c3d1 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -325,7 +325,7 @@ fn execute_external_subcommand(config: &Config, cmd: &str, args: &[String]) -> C let err = match util::process(&command) .env(cargo::CARGO_ENV, cargo_exe) .args(&args[1..]) - .exec() { + .exec_replace() { Ok(()) => return Ok(()), Err(e) => e, };