Replace ParseSess::set_dcx with DiagCtxt::set_emitter
Replacing the error emitter doesn't accidentally clear the error count.
This commit is contained in:
parent
6556147d15
commit
6a566ee092
3 changed files with 8 additions and 8 deletions
|
@ -337,8 +337,4 @@ impl ParseSess {
|
|||
pub fn dcx(&self) -> DiagCtxtHandle<'_> {
|
||||
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