about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-06 19:16:22 +0000
committerbors <bors@rust-lang.org>2021-10-06 19:16:22 +0000
commit11492c75a39b26c19f3e5655d425b2db8a0b4e00 (patch)
treec9d0463f86ad7e47d46f474bbcc1a756a533db33 /tests
parentb9d753e4f5eb921a4185d5bbaef15a5af2c43e2f (diff)
parent2a8d7bd0dd69ab1fe2a2af0f2984959f62b5631c (diff)
downloadrust-11492c75a39b26c19f3e5655d425b2db8a0b4e00.tar.gz
rust-11492c75a39b26c19f3e5655d425b2db8a0b4e00.zip
Auto merge of #7772 - Manishearth:doc-markdown-intra, r=camsteffen
Handle intra-doc links in doc_markdown

Fixes #7758

changelog: Handle intra-doc links in [`doc_markdown`]
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/doc/doc.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/doc/doc.rs b/tests/ui/doc/doc.rs
index 8b0c0f304fc..342208e52b8 100644
--- a/tests/ui/doc/doc.rs
+++ b/tests/ui/doc/doc.rs
@@ -203,6 +203,11 @@ fn issue_2343() {}
 /// __|_ _|__||_|
 fn pulldown_cmark_crash() {}
 
+/// This should not lint
+/// (regression test for #7758)
+/// [plain text][path::to::item]
+fn intra_doc_link() {}
+
 // issue #7033 - generic_const_exprs ICE
 struct S<T, const N: usize>
 where [(); N.checked_next_power_of_two().unwrap()]: {