1
Fork 0

Support Reference & ReferenceUnknown link lint

This commit is contained in:
Kyle Lin 2023-06-30 22:48:20 +08:00
parent c7369891ba
commit 46df95817d
5 changed files with 1135 additions and 67 deletions

View file

@ -52,3 +52,107 @@ pub fn should_warn_inline() {}
/// [`Vec<T>`](Vec)
/// [`Vec<T>`](std::vec::Vec)
pub fn should_not_warn_inline() {}
/// [dummy_target]
//~^ ERROR redundant explicit link target
/// [`dummy_target`]
//~^ ERROR redundant explicit link target
///
/// [Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`]
//~^ ERROR redundant explicit link target
/// [Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`]
//~^ ERROR redundant explicit link target
///
/// [usize]
//~^ ERROR redundant explicit link target
/// [`usize`]
//~^ ERROR redundant explicit link target
/// [usize]
//~^ ERROR redundant explicit link target
/// [`usize`]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`]
//~^ ERROR redundant explicit link target
///
/// [dummy_target] TEXT
//~^ ERROR redundant explicit link target
/// [`dummy_target`] TEXT
//~^ ERROR redundant explicit link target
pub fn should_warn_reference_unknown() {}
/// [`Vec<T>`][Vec]
/// [`Vec<T>`][std::vec::Vec]
pub fn should_not_warn_reference_unknown() {}
/// [dummy_target]
//~^ ERROR redundant explicit link target
/// [`dummy_target`]
//~^ ERROR redundant explicit link target
///
/// [Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`]
//~^ ERROR redundant explicit link target
/// [Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`]
//~^ ERROR redundant explicit link target
///
/// [usize]
//~^ ERROR redundant explicit link target
/// [`usize`]
//~^ ERROR redundant explicit link target
/// [usize]
//~^ ERROR redundant explicit link target
/// [`usize`]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`]
//~^ ERROR redundant explicit link target
///
/// [dummy_target] TEXT
//~^ ERROR redundant explicit link target
/// [`dummy_target`] TEXT
//~^ ERROR redundant explicit link target
///
/// [dummy_target]: dummy_target
/// [Vec]: Vec
/// [std::vec::Vec]: Vec
/// [usize]: usize
/// [std::primitive::usize]: usize
pub fn should_warn_reference() {}
/// [`Vec<T>`]: Vec
/// [`Vec<T>`]: std::vec::Vec
pub fn should_not_warn_reference() {}

View file

@ -52,3 +52,107 @@ pub fn should_warn_inline() {}
/// [`Vec<T>`](Vec)
/// [`Vec<T>`](std::vec::Vec)
pub fn should_not_warn_inline() {}
/// [dummy_target][dummy_target]
//~^ ERROR redundant explicit link target
/// [`dummy_target`][dummy_target]
//~^ ERROR redundant explicit link target
///
/// [Vec][Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`][Vec]
//~^ ERROR redundant explicit link target
/// [Vec][std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`][std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec][Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`][Vec]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec][std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`][std::vec::Vec]
//~^ ERROR redundant explicit link target
///
/// [usize][usize]
//~^ ERROR redundant explicit link target
/// [`usize`][usize]
//~^ ERROR redundant explicit link target
/// [usize][std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`usize`][std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize][usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`][usize]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize][std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`][std::primitive::usize]
//~^ ERROR redundant explicit link target
///
/// [dummy_target][dummy_target] TEXT
//~^ ERROR redundant explicit link target
/// [`dummy_target`][dummy_target] TEXT
//~^ ERROR redundant explicit link target
pub fn should_warn_reference_unknown() {}
/// [`Vec<T>`][Vec]
/// [`Vec<T>`][std::vec::Vec]
pub fn should_not_warn_reference_unknown() {}
/// [dummy_target][dummy_target]
//~^ ERROR redundant explicit link target
/// [`dummy_target`][dummy_target]
//~^ ERROR redundant explicit link target
///
/// [Vec][Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`][Vec]
//~^ ERROR redundant explicit link target
/// [Vec][std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`Vec`][std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec][Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`][Vec]
//~^ ERROR redundant explicit link target
/// [std::vec::Vec][std::vec::Vec]
//~^ ERROR redundant explicit link target
/// [`std::vec::Vec`][std::vec::Vec]
//~^ ERROR redundant explicit link target
///
/// [usize][usize]
//~^ ERROR redundant explicit link target
/// [`usize`][usize]
//~^ ERROR redundant explicit link target
/// [usize][std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`usize`][std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize][usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`][usize]
//~^ ERROR redundant explicit link target
/// [std::primitive::usize][std::primitive::usize]
//~^ ERROR redundant explicit link target
/// [`std::primitive::usize`][std::primitive::usize]
//~^ ERROR redundant explicit link target
///
/// [dummy_target][dummy_target] TEXT
//~^ ERROR redundant explicit link target
/// [`dummy_target`][dummy_target] TEXT
//~^ ERROR redundant explicit link target
///
/// [dummy_target]: dummy_target
/// [Vec]: Vec
/// [std::vec::Vec]: Vec
/// [usize]: usize
/// [std::primitive::usize]: usize
pub fn should_warn_reference() {}
/// [`Vec<T>`]: Vec
/// [`Vec<T>`]: std::vec::Vec
pub fn should_not_warn_reference() {}

View file

@ -303,5 +303,705 @@ help: remove explicit link target
LL | /// [`dummy_target`] TEXT
| ~~~~~~~~~~~~~~~~
error: aborting due to 20 previous errors
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:56:20
|
LL | /// [dummy_target][dummy_target]
| ------------ ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [dummy_target]
| ~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:58:22
|
LL | /// [`dummy_target`][dummy_target]
| -------------- ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`dummy_target`]
| ~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:61:11
|
LL | /// [Vec][Vec]
| --- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [Vec]
| ~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:63:13
|
LL | /// [`Vec`][Vec]
| ----- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`Vec`]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:65:11
|
LL | /// [Vec][std::vec::Vec]
| --- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [Vec]
| ~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:67:13
|
LL | /// [`Vec`][std::vec::Vec]
| ----- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`Vec`]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:69:21
|
LL | /// [std::vec::Vec][Vec]
| ------------- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::vec::Vec]
| ~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:71:23
|
LL | /// [`std::vec::Vec`][Vec]
| --------------- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::vec::Vec`]
| ~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:73:21
|
LL | /// [std::vec::Vec][std::vec::Vec]
| ------------- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::vec::Vec]
| ~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:75:23
|
LL | /// [`std::vec::Vec`][std::vec::Vec]
| --------------- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::vec::Vec`]
| ~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:78:13
|
LL | /// [usize][usize]
| ----- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [usize]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:80:15
|
LL | /// [`usize`][usize]
| ------- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`usize`]
| ~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:82:13
|
LL | /// [usize][std::primitive::usize]
| ----- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [usize]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:84:15
|
LL | /// [`usize`][std::primitive::usize]
| ------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`usize`]
| ~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:86:29
|
LL | /// [std::primitive::usize][usize]
| --------------------- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::primitive::usize]
| ~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:88:31
|
LL | /// [`std::primitive::usize`][usize]
| ----------------------- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::primitive::usize`]
| ~~~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:90:29
|
LL | /// [std::primitive::usize][std::primitive::usize]
| --------------------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::primitive::usize]
| ~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:92:31
|
LL | /// [`std::primitive::usize`][std::primitive::usize]
| ----------------------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::primitive::usize`]
| ~~~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:95:20
|
LL | /// [dummy_target][dummy_target] TEXT
| ------------ ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [dummy_target] TEXT
| ~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:97:22
|
LL | /// [`dummy_target`][dummy_target] TEXT
| -------------- ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`dummy_target`] TEXT
| ~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:105:20
|
LL | /// [dummy_target][dummy_target]
| ------------ ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:149:21
|
LL | /// [dummy_target]: dummy_target
| ^^^^^^^^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [dummy_target]
| ~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:107:22
|
LL | /// [`dummy_target`][dummy_target]
| -------------- ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:149:21
|
LL | /// [dummy_target]: dummy_target
| ^^^^^^^^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`dummy_target`]
| ~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:110:11
|
LL | /// [Vec][Vec]
| --- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:150:12
|
LL | /// [Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [Vec]
| ~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:112:13
|
LL | /// [`Vec`][Vec]
| ----- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:150:12
|
LL | /// [Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`Vec`]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:114:11
|
LL | /// [Vec][std::vec::Vec]
| --- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:151:22
|
LL | /// [std::vec::Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [Vec]
| ~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:116:13
|
LL | /// [`Vec`][std::vec::Vec]
| ----- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:151:22
|
LL | /// [std::vec::Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`Vec`]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:118:21
|
LL | /// [std::vec::Vec][Vec]
| ------------- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:150:12
|
LL | /// [Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::vec::Vec]
| ~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:120:23
|
LL | /// [`std::vec::Vec`][Vec]
| --------------- ^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:150:12
|
LL | /// [Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::vec::Vec`]
| ~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:122:21
|
LL | /// [std::vec::Vec][std::vec::Vec]
| ------------- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:151:22
|
LL | /// [std::vec::Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::vec::Vec]
| ~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:124:23
|
LL | /// [`std::vec::Vec`][std::vec::Vec]
| --------------- ^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:151:22
|
LL | /// [std::vec::Vec]: Vec
| ^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::vec::Vec`]
| ~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:127:13
|
LL | /// [usize][usize]
| ----- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:152:14
|
LL | /// [usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [usize]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:129:15
|
LL | /// [`usize`][usize]
| ------- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:152:14
|
LL | /// [usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`usize`]
| ~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:131:13
|
LL | /// [usize][std::primitive::usize]
| ----- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:153:30
|
LL | /// [std::primitive::usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [usize]
| ~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:133:15
|
LL | /// [`usize`][std::primitive::usize]
| ------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:153:30
|
LL | /// [std::primitive::usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`usize`]
| ~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:135:29
|
LL | /// [std::primitive::usize][usize]
| --------------------- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:152:14
|
LL | /// [usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::primitive::usize]
| ~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:137:31
|
LL | /// [`std::primitive::usize`][usize]
| ----------------------- ^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:152:14
|
LL | /// [usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::primitive::usize`]
| ~~~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:139:29
|
LL | /// [std::primitive::usize][std::primitive::usize]
| --------------------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:153:30
|
LL | /// [std::primitive::usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [std::primitive::usize]
| ~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:141:31
|
LL | /// [`std::primitive::usize`][std::primitive::usize]
| ----------------------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:153:30
|
LL | /// [std::primitive::usize]: usize
| ^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`std::primitive::usize`]
| ~~~~~~~~~~~~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:144:20
|
LL | /// [dummy_target][dummy_target] TEXT
| ------------ ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:149:21
|
LL | /// [dummy_target]: dummy_target
| ^^^^^^^^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [dummy_target] TEXT
| ~~~~~~~~~~~~~~
error: redundant explicit link target
--> $DIR/redundant_explicit_links.rs:146:22
|
LL | /// [`dummy_target`][dummy_target] TEXT
| -------------- ^^^^^^^^^^^^ explicit target is redundant
| |
| because label contains path that resolves to same destination
|
note: referenced explicit link target defined here
--> $DIR/redundant_explicit_links.rs:149:21
|
LL | /// [dummy_target]: dummy_target
| ^^^^^^^^^^^^
= note: when a link's destination is not specified,
the label is used to resolve intra-doc links
help: remove explicit link target
|
LL | /// [`dummy_target`] TEXT
| ~~~~~~~~~~~~~~~~
error: aborting due to 60 previous errors