about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-20 10:43:41 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-23 13:18:50 +1100
commitaec78dd695e7477033bb4d4efacdc8eb659a230a (patch)
tree515e2f072da7c56b1f51e6fc1b9a1ea438746a96 /compiler/rustc_errors/src
parent1b3695887f6458ba83b8d5db9b4c57ecd27db5e0 (diff)
downloadrust-aec78dd695e7477033bb4d4efacdc8eb659a230a.tar.gz
rust-aec78dd695e7477033bb4d4efacdc8eb659a230a.zip
Fix a couple of left-over references to `Handler`.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index a4c29bb98b6..dafb67932a0 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -407,7 +407,7 @@ pub struct ExplicitBug;
 /// rather than a failed assertion, etc.
 pub struct DelayedBugPanic;
 
-/// A handler deals with errors and other compiler output.
+/// A `DiagCtxt` deals with errors and other compiler output.
 /// Certain errors (fatal, bug, unimpl) may cause immediate exit,
 /// others log errors for later reporting.
 pub struct DiagCtxt {
@@ -444,7 +444,7 @@ struct DiagCtxtInner {
     emitted_diagnostic_codes: FxIndexSet<DiagnosticId>,
 
     /// This set contains a hash of every diagnostic that has been emitted by
-    /// this handler. These hashes is used to avoid emitting the same error
+    /// this `DiagCtxt`. These hashes is used to avoid emitting the same error
     /// twice.
     emitted_diagnostics: FxHashSet<Hash128>,