Skip to content
Permalink
Browse files

Avoid some common false positives in intra doc link checking

  • Loading branch information...
Manishearth committed Mar 9, 2019
1 parent b2ea6c8 commit a4ea08420cde12ea0943cafb1505e512c5820f70
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/librustdoc/passes/collect_intra_doc_links.rs
@@ -291,6 +291,12 @@ impl<'a, 'tcx, 'rcx> DocFolder for LinkCollector<'a, 'tcx, 'rcx> {
if ori_link.contains('/') {
continue;
}

// [] is mostly likely not supposed to be a link
if ori_link.is_empty() {
continue;
}

let link = ori_link.replace("`", "");
let (def, fragment) = {
let mut kind = PathKind::Unknown;

0 comments on commit a4ea084

Please sign in to comment.
You can’t perform that action at this time.