From da582a71d2c19a2ded0c45f464cb64c9544c26eb Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Thu, 29 Jun 2023 13:24:09 +0800 Subject: Add warn level lint `redundant_explicit_links` - Currently it will panic due to the resolution's caching issue --- tests/rustdoc-ui/lints/redundant_explicit_links.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/rustdoc-ui/lints/redundant_explicit_links.rs (limited to 'tests') diff --git a/tests/rustdoc-ui/lints/redundant_explicit_links.rs b/tests/rustdoc-ui/lints/redundant_explicit_links.rs new file mode 100644 index 00000000000..e794388476b --- /dev/null +++ b/tests/rustdoc-ui/lints/redundant_explicit_links.rs @@ -0,0 +1,6 @@ +#![deny(rustdoc::redundant_explicit_links)] + +pub fn dummy_target() {} + +/// [`Vec`](std::vec::Vec) +pub fn c() {} -- cgit 1.4.1-3-g733a5