We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4b042 commit 53cb8b0Copy full SHA for 53cb8b0
src/librustdoc/passes/collect_intra_doc_links.rs
@@ -934,7 +934,9 @@ fn preprocess_link(
934
// certain link kinds cannot have their path be urls,
935
// so they should not be ignored, no matter how much they look like urls.
936
// e.g. [https://example.com/] is not a link to example.com.
937
- let can_be_url = ori_link.kind == LinkType::Inline || ori_link.kind == LinkType::Autolink;
+ let can_be_url = ori_link.kind != LinkType::ShortcutUnknown &&
938
+ ori_link.kind != LinkType::CollapsedUnknown &&
939
+ ori_link.kind != LinkType::ReferenceUnknown;
940
941
// [] is mostly likely not supposed to be a link
942
if ori_link.link.is_empty() {
0 commit comments