Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2ab1b7d

Browse files
committed
Rename link_range -> disambiguator_range in disambiguator_error
It's not the range of the full link, it's only a partial range.
1 parent 8ed7d93 commit 2ab1b7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,10 +1975,10 @@ fn disambiguator_error(
19751975
cx: &DocContext<'_>,
19761976
item: &Item,
19771977
dox: &str,
1978-
link_range: Range<usize>,
1978+
disambiguator_range: Range<usize>,
19791979
msg: &str,
19801980
) {
1981-
report_diagnostic(cx.tcx, BROKEN_INTRA_DOC_LINKS, msg, item, dox, &link_range, |_diag, _sp| {});
1981+
report_diagnostic(cx.tcx, BROKEN_INTRA_DOC_LINKS, msg, item, dox, &disambiguator_range, |_diag, _sp| {});
19821982
}
19831983

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

0 commit comments

Comments
 (0)