Fix incorrect return type of emit_fatal
Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>
This commit is contained in:
parent
6a340741bd
commit
70e0af632d
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ impl Session {
|
||||||
) -> DiagnosticBuilder<'a, !> {
|
) -> DiagnosticBuilder<'a, !> {
|
||||||
self.parse_sess.create_fatal(fatal)
|
self.parse_sess.create_fatal(fatal)
|
||||||
}
|
}
|
||||||
pub fn emit_fatal<'a>(&'a self, fatal: impl SessionDiagnostic<'a, !>) {
|
pub fn emit_fatal<'a>(&'a self, fatal: impl SessionDiagnostic<'a, !>) -> ! {
|
||||||
self.parse_sess.emit_fatal(fatal)
|
self.parse_sess.emit_fatal(fatal)
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Reference in a new issue