From 9aff581cfe3f7a9e3c8f745c6e04d69008247b1d Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 2 Aug 2022 17:37:23 -0400 Subject: [PATCH] exec should not return --- collector/src/rustc-fake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/src/rustc-fake.rs b/collector/src/rustc-fake.rs index 5c89d174f..647763829 100644 --- a/collector/src/rustc-fake.rs +++ b/collector/src/rustc-fake.rs @@ -465,7 +465,7 @@ fn process_self_profile_output(prof_out_dir: PathBuf, args: &[OsString]) { } #[cfg(windows)] -fn exec(cmd: &mut Command) { +fn exec(cmd: &mut Command) -> ! { let cmd_d = format!("{:?}", cmd); match cmd.status() { Ok(status) => std::process::exit(status.code().unwrap_or(1)),