Skip to content

Commit d6394e5

Browse files
authored
Rollup merge of rust-lang#48064 - Manishearth:intra-doc-bail, r=QuietMisdreavus
intra-doc-links: bail early for linky things r? @QuietMisdreavus
2 parents 73d2767 + 04fde1c commit d6394e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/clean/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,10 @@ impl Clean<Attributes> for [ast::Attribute] {
10511051
if UnstableFeatures::from_environment().is_nightly_build() {
10521052
let dox = attrs.collapsed_doc_value().unwrap_or_else(String::new);
10531053
for link in markdown_links(&dox, cx.render_type) {
1054+
// bail early for real links
1055+
if link.contains('/') {
1056+
continue;
1057+
}
10541058
let (def, fragment) = {
10551059
let mut kind = PathKind::Unknown;
10561060
let path_str = if let Some(prefix) =

0 commit comments

Comments
 (0)