Skip to content

Commit

Permalink
Add set_dcx to ParseSess
Browse files Browse the repository at this point in the history
  • Loading branch information
Vetle Rasmussen committed Sep 13, 2024
1 parent a5efa01 commit bde1f4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_session/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,8 @@ impl ParseSess {
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
self.dcx.handle()
}

pub fn set_dcx(&mut self, dcx: DiagCtxt) {
self.dcx = dcx;
}
}

0 comments on commit bde1f4d

Please sign in to comment.