Skip to content

Commit

Permalink
rustc_driver::main: more informative return type
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 10, 2020
1 parent 23d880b commit 51e466d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ pub fn init_rustc_env_logger() {
env_logger::init_from_env("RUSTC_LOG");
}

pub fn main() {
pub fn main() -> ! {
let start = Instant::now();
init_rustc_env_logger();
let mut callbacks = TimePassesCallbacks::default();
Expand All @@ -1259,5 +1259,5 @@ pub fn main() {
});
// The extra `\t` is necessary to align this label with the others.
print_time_passes_entry(callbacks.time_passes, "\ttotal", start.elapsed());
process::exit(exit_code);
process::exit(exit_code)
}

0 comments on commit 51e466d

Please sign in to comment.