about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-05-11 00:11:42 +0200
committerRalf Jung <post@ralfj.de>2020-05-11 00:11:42 +0200
commit51e466de3cbfb94b7d0736066a765d8ea31394e4 (patch)
tree7cdf97101b2bbfd954b8c04435a5a84539a1622b
parent23d880b127c346be631d2a9dbcef3bd5dff7d305 (diff)
rustc_driver::main: more informative return type
-rw-r--r--src/librustc_driver/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index f8afaecf218..6847b175e60 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -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();
@@ -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)
 }