Skip to content

Commit

Permalink
Rollup merge of rust-lang#48064 - Manishearth:intra-doc-bail, r=Quiet…
Browse files Browse the repository at this point in the history
…Misdreavus

intra-doc-links: bail early for linky things

r? @QuietMisdreavus
  • Loading branch information
kennytm authored Feb 8, 2018
2 parents 4286a37 + 04fde1c commit e4fb971
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,10 @@ impl Clean<Attributes> for [ast::Attribute] {
if UnstableFeatures::from_environment().is_nightly_build() {
let dox = attrs.collapsed_doc_value().unwrap_or_else(String::new);
for link in markdown_links(&dox, cx.render_type) {
// bail early for real links
if link.contains('/') {
continue;
}
let (def, fragment) = {
let mut kind = PathKind::Unknown;
let path_str = if let Some(prefix) =
Expand Down

0 comments on commit e4fb971

Please sign in to comment.