1
Fork 0

Miscellaneous inlining improvements

This commit is contained in:
Tomasz Miąsko 2021-06-01 00:00:00 +00:00
parent c4f186f0ea
commit c1f6495b8e
17 changed files with 45 additions and 0 deletions

View file

@ -452,6 +452,7 @@ impl Session {
pub fn emit_err<'a>(&'a self, err: impl SessionDiagnostic<'a>) {
err.into_diagnostic(self).emit()
}
#[inline]
pub fn err_count(&self) -> usize {
self.diagnostic().err_count()
}
@ -524,6 +525,7 @@ impl Session {
self.diagnostic().struct_note_without_error(msg)
}
#[inline]
pub fn diagnostic(&self) -> &rustc_errors::Handler {
&self.parse_sess.span_diagnostic
}