1
Fork 0

Replace ParseSess::set_dcx with DiagCtxt::set_emitter

Replacing the error emitter doesn't accidentally clear the error count.
This commit is contained in:
bjorn3 2025-02-02 16:06:16 +00:00
parent 6556147d15
commit 6a566ee092
3 changed files with 8 additions and 8 deletions

View file

@ -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;
}
}