Skip to content

Commit 51e466d

Browse files
committed
rustc_driver::main: more informative return type
1 parent 23d880b commit 51e466d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_driver/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ pub fn init_rustc_env_logger() {
12381238
env_logger::init_from_env("RUSTC_LOG");
12391239
}
12401240

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

0 commit comments

Comments
 (0)