summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/lints
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
commitd1b2d29528b7794b41e66fc2136e395a02f8529b (patch)
treea4a17504b260206dec3cf55b2dca82929a348ac2 /tests/rustdoc-ui/lints
parentReleasing progress-linux version 1.72.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.tar.xz
rustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.zip
Merging upstream version 1.73.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-ui/lints')
-rw-r--r--tests/rustdoc-ui/lints/inline-doc-link.rs13
-rw-r--r--tests/rustdoc-ui/lints/invalid-doc-attr.rs15
-rw-r--r--tests/rustdoc-ui/lints/invalid-doc-attr.stderr49
-rw-r--r--tests/rustdoc-ui/lints/no-redundancy.rs7
-rw-r--r--tests/rustdoc-ui/lints/redundant_explicit_links-utf8.rs18
-rw-r--r--tests/rustdoc-ui/lints/redundant_explicit_links.fixed158
-rw-r--r--tests/rustdoc-ui/lints/redundant_explicit_links.rs158
-rw-r--r--tests/rustdoc-ui/lints/redundant_explicit_links.stderr1007
8 files changed, 1418 insertions, 7 deletions
diff --git a/tests/rustdoc-ui/lints/inline-doc-link.rs b/tests/rustdoc-ui/lints/inline-doc-link.rs
new file mode 100644
index 000000000..596f89be3
--- /dev/null
+++ b/tests/rustdoc-ui/lints/inline-doc-link.rs
@@ -0,0 +1,13 @@
+// Regression test for <https://github.com/rust-lang/rust/pull/113167>
+
+// check-pass
+#![deny(rustdoc::redundant_explicit_links)]
+
+mod m {
+ pub enum ValueEnum {}
+}
+mod m2 {
+ /// [`ValueEnum`]
+ pub use crate::m::ValueEnum;
+}
+pub use m2::ValueEnum;
diff --git a/tests/rustdoc-ui/lints/invalid-doc-attr.rs b/tests/rustdoc-ui/lints/invalid-doc-attr.rs
index c231e43b3..16b12cca5 100644
--- a/tests/rustdoc-ui/lints/invalid-doc-attr.rs
+++ b/tests/rustdoc-ui/lints/invalid-doc-attr.rs
@@ -1,5 +1,10 @@
#![crate_type = "lib"]
#![deny(warnings)]
+#![feature(doc_masked)]
+
+#![doc(masked)]
+//~^ ERROR this attribute can only be applied to an `extern crate` item
+//~| WARN is being phased out
#[doc(test(no_crate_inject))]
//~^ ERROR can only be applied at the crate level
@@ -30,3 +35,13 @@ pub mod bar {
//~^^ ERROR conflicting doc inlining attributes
//~| HELP remove one of the conflicting attributes
pub use bar::baz;
+
+#[doc(masked)]
+//~^ ERROR this attribute can only be applied to an `extern crate` item
+//~| WARN is being phased out
+pub struct Masked;
+
+#[doc(masked)]
+//~^ ERROR this attribute cannot be applied to an `extern crate self` item
+//~| WARN is being phased out
+pub extern crate self as reexport;
diff --git a/tests/rustdoc-ui/lints/invalid-doc-attr.stderr b/tests/rustdoc-ui/lints/invalid-doc-attr.stderr
index b23b8ded8..82ea33e1d 100644
--- a/tests/rustdoc-ui/lints/invalid-doc-attr.stderr
+++ b/tests/rustdoc-ui/lints/invalid-doc-attr.stderr
@@ -1,5 +1,5 @@
error: this attribute can only be applied at the crate level
- --> $DIR/invalid-doc-attr.rs:4:7
+ --> $DIR/invalid-doc-attr.rs:9:7
|
LL | #[doc(test(no_crate_inject))]
| ^^^^^^^^^^^^^^^^^^^^^
@@ -19,7 +19,7 @@ LL | #![doc(test(no_crate_inject))]
| +
error: this attribute can only be applied to a `use` item
- --> $DIR/invalid-doc-attr.rs:9:7
+ --> $DIR/invalid-doc-attr.rs:14:7
|
LL | #[doc(inline)]
| ^^^^^^ only applicable on `use` items
@@ -32,7 +32,7 @@ LL | pub fn foo() {}
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
error: this attribute can only be applied at the crate level
- --> $DIR/invalid-doc-attr.rs:15:12
+ --> $DIR/invalid-doc-attr.rs:20:12
|
LL | #![doc(test(no_crate_inject))]
| ^^^^^^^^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL | #![doc(test(no_crate_inject))]
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
error: conflicting doc inlining attributes
- --> $DIR/invalid-doc-attr.rs:28:7
+ --> $DIR/invalid-doc-attr.rs:33:7
|
LL | #[doc(inline)]
| ^^^^^^ this attribute...
@@ -51,8 +51,43 @@ LL | #[doc(no_inline)]
|
= help: remove one of the conflicting attributes
+error: this attribute can only be applied to an `extern crate` item
+ --> $DIR/invalid-doc-attr.rs:39:7
+ |
+LL | #[doc(masked)]
+ | ^^^^^^ only applicable on `extern crate` items
+...
+LL | pub struct Masked;
+ | ----------------- not an `extern crate` item
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
+ = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
+
+error: this attribute cannot be applied to an `extern crate self` item
+ --> $DIR/invalid-doc-attr.rs:44:7
+ |
+LL | #[doc(masked)]
+ | ^^^^^^ not applicable on `extern crate self` items
+...
+LL | pub extern crate self as reexport;
+ | --------------------------------- `extern crate self` defined here
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
+
+error: this attribute can only be applied to an `extern crate` item
+ --> $DIR/invalid-doc-attr.rs:5:8
+ |
+LL | #![doc(masked)]
+ | ^^^^^^ only applicable on `extern crate` items
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
+ = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
+
error: this attribute can only be applied at the crate level
- --> $DIR/invalid-doc-attr.rs:19:11
+ --> $DIR/invalid-doc-attr.rs:24:11
|
LL | #[doc(test(no_crate_inject))]
| ^^^^^^^^^^^^^^^^^^^^^
@@ -62,7 +97,7 @@ LL | #[doc(test(no_crate_inject))]
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
error: this attribute can only be applied to a `use` item
- --> $DIR/invalid-doc-attr.rs:22:11
+ --> $DIR/invalid-doc-attr.rs:27:11
|
LL | #[doc(inline)]
| ^^^^^^ only applicable on `use` items
@@ -74,5 +109,5 @@ LL | pub fn baz() {}
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
-error: aborting due to 6 previous errors
+error: aborting due to 9 previous errors
diff --git a/tests/rustdoc-ui/lints/no-redundancy.rs b/tests/rustdoc-ui/lints/no-redundancy.rs
new file mode 100644
index 000000000..e3358728b
--- /dev/null
+++ b/tests/rustdoc-ui/lints/no-redundancy.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+#![deny(rustdoc::redundant_explicit_links)]
+
+/// [Vec][std::vec::Vec#examples] should not warn, because it's not actually redundant!
+/// [This is just an `Option`][std::option::Option] has different display content to actual link!
+pub fn func() {}
diff --git a/tests/rustdoc-ui/lints/redundant_explicit_links-utf8.rs b/tests/rustdoc-ui/lints/redundant_explicit_links-utf8.rs
new file mode 100644
index 000000000..fecefb7b2
--- /dev/null
+++ b/tests/rustdoc-ui/lints/redundant_explicit_links-utf8.rs
@@ -0,0 +1,18 @@
+// check-pass
+
+/// [`…foo`] [`…bar`] [`Err`]
+pub struct Broken {}
+
+/// [`…`] [`…`] [`Err`]
+pub struct Broken2 {}
+
+/// [`…`][…] [`…`][…] [`Err`]
+pub struct Broken3 {}
+
+/// […………………………][Broken3]
+pub struct Broken4 {}
+
+/// [Broken3][…………………………]
+pub struct Broken5 {}
+
+pub struct Err;
diff --git a/tests/rustdoc-ui/lints/redundant_explicit_links.fixed b/tests/rustdoc-ui/lints/redundant_explicit_links.fixed
new file mode 100644
index 000000000..900234e31
--- /dev/null
+++ b/tests/rustdoc-ui/lints/redundant_explicit_links.fixed
@@ -0,0 +1,158 @@
+// run-rustfix
+
+#![deny(rustdoc::redundant_explicit_links)]
+
+pub fn dummy_target() {}
+
+/// [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_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() {}
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 000000000..13feb85e0
--- /dev/null
+++ b/tests/rustdoc-ui/lints/redundant_explicit_links.rs
@@ -0,0 +1,158 @@
+// run-rustfix
+
+#![deny(rustdoc::redundant_explicit_links)]
+
+pub fn dummy_target() {}
+
+/// [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_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() {}
diff --git a/tests/rustdoc-ui/lints/redundant_explicit_links.stderr b/tests/rustdoc-ui/lints/redundant_explicit_links.stderr
new file mode 100644
index 000000000..34ec9be66
--- /dev/null
+++ b/tests/rustdoc-ui/lints/redundant_explicit_links.stderr
@@ -0,0 +1,1007 @@
+error: redundant explicit link target
+ --> $DIR/redundant_explicit_links.rs:7: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
+note: the lint level is defined here
+ --> $DIR/redundant_explicit_links.rs:3:9
+ |
+LL | #![deny(rustdoc::redundant_explicit_links)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+help: remove explicit link target
+ |
+LL | /// [dummy_target]
+ | ~~~~~~~~~~~~~~
+
+error: redundant explicit link target
+ --> $DIR/redundant_explicit_links.rs:9: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:12: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:14: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:16: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:18: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:20: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:22: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:24: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:26: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:29: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:31: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:33: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:35: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:37: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:39: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:41: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:43: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:46: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:48: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: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
+