Miscellaneous inlining improvements
This commit is contained in:
parent
c4f186f0ea
commit
c1f6495b8e
17 changed files with 45 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue