Skip to content

Commit 8649755

Browse files
committed
Fix broken intra-doc link to DiagCtxtHandle::err_count
1 parent c9c1d53 commit 8649755

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compiler/rustc_errors/src

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ impl<'a> DiagCtxtHandle<'a> {
729729

730730
/// The number of errors that have been emitted on the *current thread*.
731731
///
732-
/// Unlike [`DiagCtxt::err_count`], which counts errors emitted by all
732+
/// Unlike [`DiagCtxtHandle::err_count`], which counts errors emitted by all
733733
/// threads, this only counts errors emitted by the calling thread. It is
734734
/// meant for code that takes a before/after delta to detect whether a unit
735735
/// of work emitted an error, and must not be misled by errors emitted on

0 commit comments

Comments
 (0)