Skip to content

Commit 63a9e80

Browse files
committed
Clarify comments about diagnostic count fields.
1 parent d78329b commit 63a9e80

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_errors/src

1 file changed

+6
-6
lines changed

compiler/rustc_errors/src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -421,16 +421,16 @@ pub struct DiagCtxt {
421421
struct DiagCtxtInner {
422422
flags: DiagCtxtFlags,
423423

424-
/// The number of lint errors that have been emitted.
424+
/// The number of lint errors that have been emitted, including duplicates.
425425
lint_err_count: usize,
426-
/// The number of errors that have been emitted, including duplicates.
427-
///
428-
/// This is not necessarily the count that's reported to the user once
429-
/// compilation ends.
426+
/// The number of non-lint errors that have been emitted, including duplicates.
430427
err_count: usize,
428+
429+
/// The error count shown to the user at the end.
431430
deduplicated_err_count: usize,
432-
/// The warning count, used for a recap upon finishing
431+
/// The warning count shown to the user at the end.
433432
deduplicated_warn_count: usize,
433+
434434
/// Has this diagnostic context printed any diagnostics? (I.e. has
435435
/// `self.emitter.emit_diagnostic()` been called?
436436
has_printed: bool,

0 commit comments

Comments
 (0)