Skip to content

Commit 04fde1c

Browse files
committed
intra-doc-links: bail early for linky things
1 parent 29c8276 commit 04fde1c

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)