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

Commit 58f9c5b

Browse files
committed
Take DiagnosticInfo in disambiguator_error
1 parent 2ab1b7d commit 58f9c5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ impl LinkCollector<'_, '_> {
984984
// See issue #83859.
985985
let disambiguator_range = (no_backticks_range.start + relative_range.start)
986986
..(no_backticks_range.start + relative_range.end);
987-
disambiguator_error(self.cx, &item, dox, disambiguator_range, &err_msg);
987+
disambiguator_error(self.cx, diag_info, disambiguator_range, &err_msg);
988988
}
989989
return None;
990990
}
@@ -1973,8 +1973,7 @@ fn anchor_failure(
19731973
/// Report an error in the link disambiguator.
19741974
fn disambiguator_error(
19751975
cx: &DocContext<'_>,
1976-
item: &Item,
1977-
dox: &str,
1976+
DiagnosticInfo { item, ori_link: _, dox, link_range: _ }: DiagnosticInfo<'_>,
19781977
disambiguator_range: Range<usize>,
19791978
msg: &str,
19801979
) {

0 commit comments

Comments
 (0)