Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80b765b

Browse files
author
Vetle Rasmussen
committedSep 13, 2024·
Add set_dcx to ParseSess
1 parent a5efa01 commit 80b765b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎compiler/rustc_session/src/parse.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,8 @@ impl ParseSess {
340340
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
341341
self.dcx.handle()
342342
}
343+
344+
pub fn set_dcx(&mut self, dcx: DiagCtxt) {
345+
*self.dcx = dcx;
346+
}
343347
}

0 commit comments

Comments
 (0)
Please sign in to comment.