Miscellaneous inlining improvements
This commit is contained in:
parent
c4f186f0ea
commit
c1f6495b8e
17 changed files with 45 additions and 0 deletions
|
@ -715,6 +715,7 @@ impl Handler {
|
|||
self.inner.borrow_mut().bug(msg)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn err_count(&self) -> usize {
|
||||
self.inner.borrow().err_count()
|
||||
}
|
||||
|
@ -924,6 +925,7 @@ impl HandlerInner {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn err_count(&self) -> usize {
|
||||
self.err_count + self.stashed_diagnostics.len()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue