Skip to content

Commit

Permalink
Rename link_range -> disambiguator_range in disambiguator_error
Browse files Browse the repository at this point in the history
It's not the range of the full link, it's only a partial range.
  • Loading branch information
jyn514 committed Apr 5, 2021
1 parent 8ed7d93 commit 2ab1b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Expand Up @@ -1975,10 +1975,10 @@ fn disambiguator_error(
cx: &DocContext<'_>,
item: &Item,
dox: &str,
link_range: Range<usize>,
disambiguator_range: Range<usize>,
msg: &str,
) {
report_diagnostic(cx.tcx, BROKEN_INTRA_DOC_LINKS, msg, item, dox, &link_range, |_diag, _sp| {});
report_diagnostic(cx.tcx, BROKEN_INTRA_DOC_LINKS, msg, item, dox, &disambiguator_range, |_diag, _sp| {});
}

/// Report an ambiguity error, where there were multiple possible resolutions.
Expand Down

0 comments on commit 2ab1b7d

Please sign in to comment.