diff options
| author | Kyle Lin <minecraft.kyle.train@gmail.com> | 2023-07-01 01:29:40 +0800 |
|---|---|---|
| committer | Kyle Lin <minecraft.kyle.train@gmail.com> | 2023-08-18 15:19:19 +0800 |
| commit | 78c85f439f04f2aa484a9f1be3133d74bda87c7d (patch) | |
| tree | 15d6b2ff17bd81918e873b364e6756530bc8d755 /compiler/rustc_resolve/src/rustdoc.rs | |
| parent | fe17ae3af6e1ff42b81a5309dc88b36dacfc8577 (diff) | |
| download | rust-78c85f439f04f2aa484a9f1be3133d74bda87c7d.tar.gz rust-78c85f439f04f2aa484a9f1be3133d74bda87c7d.zip | |
fomar files
Diffstat (limited to 'compiler/rustc_resolve/src/rustdoc.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/rustdoc.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/rustdoc.rs b/compiler/rustc_resolve/src/rustdoc.rs index f7275bed59c..cbda0535c89 100644 --- a/compiler/rustc_resolve/src/rustdoc.rs +++ b/compiler/rustc_resolve/src/rustdoc.rs @@ -410,7 +410,14 @@ fn parse_links<'md>(doc: &'md str) -> Vec<Box<str>> { while let Some(event) = event_iter.next() { match event { Event::Start(Tag::Link(link_type, dest, _)) if may_be_doc_link(link_type) => { - if matches!(link_type, LinkType::Inline | LinkType::ReferenceUnknown | LinkType::Reference) { + if matches!( + link_type, + LinkType::Inline + | LinkType::ReferenceUnknown + | LinkType::Reference + | LinkType::Shortcut + | LinkType::ShortcutUnknown + ) { if let Some(display_text) = collect_link_data(&mut event_iter) { links.push(display_text); } |
