rustc_driver::main: more informative return type
This commit is contained in:
parent
23d880b127
commit
51e466de3c
1 changed files with 2 additions and 2 deletions
|
@ -1238,7 +1238,7 @@ pub fn init_rustc_env_logger() {
|
||||||
env_logger::init_from_env("RUSTC_LOG");
|
env_logger::init_from_env("RUSTC_LOG");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() -> ! {
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
init_rustc_env_logger();
|
init_rustc_env_logger();
|
||||||
let mut callbacks = TimePassesCallbacks::default();
|
let mut callbacks = TimePassesCallbacks::default();
|
||||||
|
@ -1259,5 +1259,5 @@ pub fn main() {
|
||||||
});
|
});
|
||||||
// The extra `\t` is necessary to align this label with the others.
|
// The extra `\t` is necessary to align this label with the others.
|
||||||
print_time_passes_entry(callbacks.time_passes, "\ttotal", start.elapsed());
|
print_time_passes_entry(callbacks.time_passes, "\ttotal", start.elapsed());
|
||||||
process::exit(exit_code);
|
process::exit(exit_code)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue