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)),