We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bfd405 commit 39bb3c7Copy full SHA for 39bb3c7
compiler/rustc_errors/src/lib.rs
@@ -833,6 +833,7 @@ impl DiagCtxt {
833
*fulfilled_expectations = Default::default();
834
}
835
836
+ #[inline]
837
pub fn handle<'a>(&'a self) -> DiagCtxtHandle<'a> {
838
DiagCtxtHandle { dcx: self, tainted_with_errors: None }
839
compiler/rustc_session/src/parse.rs
@@ -334,6 +334,7 @@ impl ParseSess {
334
self.proc_macro_quoted_spans.iter_enumerated()
335
336
337
338
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
339
self.dcx.handle()
340
0 commit comments