about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-05 05:04:46 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-05 14:32:13 -0400
commit2ab1b7d8c3076510863e969ecc907c983a42a4ed (patch)
treeab0df6abf47215e60a47e6884d520204b67fdf3a /src
parent8ed7d936f8780a857a981676899ab24660529e7b (diff)
downloadrust-2ab1b7d8c3076510863e969ecc907c983a42a4ed.tar.gz
rust-2ab1b7d8c3076510863e969ecc907c983a42a4ed.zip
Rename link_range -> disambiguator_range in disambiguator_error
It's not the range of the full link, it's only a partial range.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/passes/collect_intra_doc_links.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs
index 496c2f57c3f..3efde35fd8b 100644
--- a/src/librustdoc/passes/collect_intra_doc_links.rs
+++ b/src/librustdoc/passes/collect_intra_doc_links.rs
@@ -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.