broken_links: Fix rustdoc API usage

This commit is contained in:
Philipp Krones 2025-06-27 12:21:41 +02:00
parent 1b5420a8be
commit f13d785a26
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5

View file

@ -19,7 +19,7 @@ pub fn check(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &str, fragm
}
fn warn_if_broken_link(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &str, fragments: &[DocFragment]) {
if let Some(span) = source_span_for_markdown_range(cx.tcx, doc, &bl.span, fragments) {
if let Some((span, _)) = source_span_for_markdown_range(cx.tcx, doc, &bl.span, fragments) {
let mut len = 0;
// grab raw link data