From c1f6495b8e19325a57702a7ce016e6d5a3f25e26 Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Tue, 1 Jun 2021 00:00:00 +0000 Subject: Miscellaneous inlining improvements --- compiler/rustc_errors/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_errors') diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 65352f0bc6e..979f2d3b300 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -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() } -- cgit 1.4.1-3-g733a5