Skip to content

Commit a53dca7

Browse files
Merge pull request #1384 from RalfJung/exec
exec should not return
2 parents b7b11a6 + 9aff581 commit a53dca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/rustc-fake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ fn process_self_profile_output(prof_out_dir: PathBuf, args: &[OsString]) {
465465
}
466466

467467
#[cfg(windows)]
468-
fn exec(cmd: &mut Command) {
468+
fn exec(cmd: &mut Command) -> ! {
469469
let cmd_d = format!("{:?}", cmd);
470470
match cmd.status() {
471471
Ok(status) => std::process::exit(status.code().unwrap_or(1)),

0 commit comments

Comments
 (0)