about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-04-13 18:41:14 -0700
committerMichael Howell <michael@notriddle.com>2024-04-13 19:32:39 -0700
commit0fea38a01f4015d310230b76984068b6fe8414d4 (patch)
tree2111710d911b09629738cf2a6ff222ac2b95fd92 /tests
parentc8d975366807d68c4c86d048c448f642d99d6e21 (diff)
downloadrust-0fea38a01f4015d310230b76984068b6fe8414d4.tar.gz
rust-0fea38a01f4015d310230b76984068b6fe8414d4.zip
rustdoc: check redundant explicit links with correct itemid
Fixes a regression caused by 0a50dba50bedd24377bd1066da3b4b7066df4d28
Diffstat (limited to 'tests')
-rw-r--r--tests/rustdoc-ui/redundant-explicit-links-123677.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/redundant-explicit-links-123677.rs b/tests/rustdoc-ui/redundant-explicit-links-123677.rs
new file mode 100644
index 00000000000..f3a5e81f89d
--- /dev/null
+++ b/tests/rustdoc-ui/redundant-explicit-links-123677.rs
@@ -0,0 +1,14 @@
+//@ check-pass
+#![deny(rustdoc::redundant_explicit_links)]
+
+mod bar {
+    /// [`Rc`](std::rc::Rc)
+    pub enum Baz {}
+}
+
+pub use bar::*;
+
+use std::rc::Rc;
+
+/// [`Rc::allocator`] [foo](std::rc::Rc)
+pub fn winit_runner() {}