diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-02 16:06:16 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-02 16:09:39 +0000 |
| commit | 6a566ee092cacf6e4b327e7fdbbb1003a514b820 (patch) | |
| tree | e46f258d8007701a5bcb7bb8971288e39a6bea14 /compiler/rustc_session/src/parse.rs | |
| parent | 6556147d15f077dfc88dae22f3983b3598bce465 (diff) | |
| download | rust-6a566ee092cacf6e4b327e7fdbbb1003a514b820.tar.gz rust-6a566ee092cacf6e4b327e7fdbbb1003a514b820.zip | |
Replace ParseSess::set_dcx with DiagCtxt::set_emitter
Replacing the error emitter doesn't accidentally clear the error count.
Diffstat (limited to 'compiler/rustc_session/src/parse.rs')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index b6b13a715ec..81ae06602cd 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -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; - } } |
