Skip to content

Commit 70e0af6

Browse files
finalchildSkiFire13
andcommitted
Fix incorrect return type of emit_fatal
Co-authored-by: Giacomo Stevanato <[email protected]>
1 parent 6a34074 commit 70e0af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ impl Session {
488488
) -> DiagnosticBuilder<'a, !> {
489489
self.parse_sess.create_fatal(fatal)
490490
}
491-
pub fn emit_fatal<'a>(&'a self, fatal: impl SessionDiagnostic<'a, !>) {
491+
pub fn emit_fatal<'a>(&'a self, fatal: impl SessionDiagnostic<'a, !>) -> ! {
492492
self.parse_sess.emit_fatal(fatal)
493493
}
494494
#[inline]

0 commit comments

Comments
 (0)