Add set_dcx to ParseSess
This commit is contained in:
parent
a5efa01895
commit
bde1f4dd57
1 changed files with 4 additions and 0 deletions
|
@ -340,4 +340,8 @@ impl ParseSess {
|
||||||
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
|
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
|
||||||
self.dcx.handle()
|
self.dcx.handle()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn set_dcx(&mut self, dcx: DiagCtxt) {
|
||||||
|
self.dcx = dcx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue