Rename link_range -> disambiguator_range in disambiguator_error

It's not the range of the full link, it's only a partial range.
This commit is contained in:
Joshua Nelson 2021-04-05 05:04:46 -04:00
parent 8ed7d936f8
commit 2ab1b7d8c3

View file

@ -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.