Fix resolution caching
This commit is contained in:
parent
da582a71d2
commit
65e24a57bb
6 changed files with 217 additions and 53 deletions
|
@ -2,5 +2,20 @@
|
|||
|
||||
pub fn dummy_target() {}
|
||||
|
||||
/// [dummy_target](dummy_target)
|
||||
/// [`dummy_target`](dummy_target)
|
||||
/// [Vec](Vec)
|
||||
/// [`Vec`](Vec)
|
||||
/// [Vec](std::vec::Vec)
|
||||
/// [`Vec`](std::vec::Vec)
|
||||
pub fn c() {}
|
||||
/// [std::vec::Vec](std::vec::Vec)
|
||||
/// [`std::vec::Vec`](std::vec::Vec)
|
||||
/// [usize](usize)
|
||||
/// [`usize`](usize)
|
||||
/// [std::primitive::usize](usize)
|
||||
/// [`std::primitive::usize`](usize)
|
||||
pub fn should_warn() {}
|
||||
|
||||
/// [`Vec<T>`](Vec)
|
||||
/// [`Vec<T>`](std::vec::Vec)
|
||||
pub fn should_not_warn() {}
|
||||
|
|
97
tests/rustdoc-ui/lints/redundant_explicit_links.stderr
Normal file
97
tests/rustdoc-ui/lints/redundant_explicit_links.stderr
Normal file
|
@ -0,0 +1,97 @@
|
|||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:5:20
|
||||
|
|
||||
LL | /// [dummy_target](dummy_target)
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
note: the lint level is defined here
|
||||
--> $DIR/redundant_explicit_links.rs:1:9
|
||||
|
|
||||
LL | #![deny(rustdoc::redundant_explicit_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:6:22
|
||||
|
|
||||
LL | /// [`dummy_target`](dummy_target)
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:7:11
|
||||
|
|
||||
LL | /// [Vec](Vec)
|
||||
| ^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:8:13
|
||||
|
|
||||
LL | /// [`Vec`](Vec)
|
||||
| ^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:9:11
|
||||
|
|
||||
LL | /// [Vec](std::vec::Vec)
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:10:13
|
||||
|
|
||||
LL | /// [`Vec`](std::vec::Vec)
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:11:21
|
||||
|
|
||||
LL | /// [std::vec::Vec](std::vec::Vec)
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:12:23
|
||||
|
|
||||
LL | /// [`std::vec::Vec`](std::vec::Vec)
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:13:13
|
||||
|
|
||||
LL | /// [usize](usize)
|
||||
| ^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: redundant explicit rustdoc link
|
||||
--> $DIR/redundant_explicit_links.rs:14:15
|
||||
|
|
||||
LL | /// [`usize`](usize)
|
||||
| ^^^^^
|
||||
|
|
||||
= note: Explicit link does not affect the original link
|
||||
= help: Remove explicit link instead
|
||||
|
||||
error: aborting due to 10 previous errors
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue