Clarify comments about diagnostic count fields.
This commit is contained in:
parent
ef71f1047e
commit
f00c088393
@ -421,16 +421,16 @@ pub struct DiagCtxt {
|
|||||||
struct DiagCtxtInner {
|
struct DiagCtxtInner {
|
||||||
flags: DiagCtxtFlags,
|
flags: DiagCtxtFlags,
|
||||||
|
|
||||||
/// The number of lint errors that have been emitted.
|
/// The number of lint errors that have been emitted, including duplicates.
|
||||||
lint_err_count: usize,
|
lint_err_count: usize,
|
||||||
/// The number of errors that have been emitted, including duplicates.
|
/// The number of non-lint errors that have been emitted, including duplicates.
|
||||||
///
|
|
||||||
/// This is not necessarily the count that's reported to the user once
|
|
||||||
/// compilation ends.
|
|
||||||
err_count: usize,
|
err_count: usize,
|
||||||
|
|
||||||
|
/// The error count shown to the user at the end.
|
||||||
deduplicated_err_count: usize,
|
deduplicated_err_count: usize,
|
||||||
/// The warning count, used for a recap upon finishing
|
/// The warning count shown to the user at the end.
|
||||||
deduplicated_warn_count: usize,
|
deduplicated_warn_count: usize,
|
||||||
|
|
||||||
/// Has this diagnostic context printed any diagnostics? (I.e. has
|
/// Has this diagnostic context printed any diagnostics? (I.e. has
|
||||||
/// `self.emitter.emit_diagnostic()` been called?
|
/// `self.emitter.emit_diagnostic()` been called?
|
||||||
has_printed: bool,
|
has_printed: bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user