diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-06-01 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-06-02 08:49:58 +0200 |
| commit | c1f6495b8e19325a57702a7ce016e6d5a3f25e26 (patch) | |
| tree | 32e2416abac1af9db40a68fbc609259923f0a4d1 /compiler/rustc_session/src | |
| parent | c4f186f0ea443db4aacdd90a2515632c20ccd3fe (diff) | |
| download | rust-c1f6495b8e19325a57702a7ce016e6d5a3f25e26.tar.gz rust-c1f6495b8e19325a57702a7ce016e6d5a3f25e26.zip | |
Miscellaneous inlining improvements
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index 4ba47985ce1..47833dcda4f 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -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 } |
