Skip to content

Commit 39bb3c7

Browse files
committed
inline dcx function
1 parent 8bfd405 commit 39bb3c7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ impl DiagCtxt {
833833
*fulfilled_expectations = Default::default();
834834
}
835835

836+
#[inline]
836837
pub fn handle<'a>(&'a self) -> DiagCtxtHandle<'a> {
837838
DiagCtxtHandle { dcx: self, tainted_with_errors: None }
838839
}

compiler/rustc_session/src/parse.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ impl ParseSess {
334334
self.proc_macro_quoted_spans.iter_enumerated()
335335
}
336336

337+
#[inline]
337338
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
338339
self.dcx.handle()
339340
}

0 commit comments

Comments
 (0)