Skip to content

Commit f05e9da

Browse files
committed
Still print help even if there's no span
1 parent 2dad90d commit f05e9da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

+2
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
787787
diag.note(&note);
788788
if let Some(sp) = sp {
789789
diag.span_suggestion(sp, &help_msg, suggestion, Applicability::MaybeIncorrect);
790+
} else {
791+
diag.help(&format!("{}: {}", help_msg, suggestion));
790792
}
791793
});
792794
continue;

0 commit comments

Comments
 (0)