diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-09-23 20:25:56 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-03 14:16:23 +0200 |
| commit | e6027a42e109fef10f4fc27ebede50d1b3d203f0 (patch) | |
| tree | c4b918f40dcd4d015415d445b53f176cc60a0f0a /src/test | |
| parent | 782013564efc06ef02614ba35a4e67dee4fcb8e7 (diff) | |
| download | rust-e6027a42e109fef10f4fc27ebede50d1b3d203f0.tar.gz rust-e6027a42e109fef10f4fc27ebede50d1b3d203f0.zip | |
Add `unclosed_html_tags` lint
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-ui/intra-link-errors.rs | 1 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/intra-link-errors.stderr | 59 |
2 files changed, 55 insertions, 5 deletions
diff --git a/src/test/rustdoc-ui/intra-link-errors.rs b/src/test/rustdoc-ui/intra-link-errors.rs index 0278caf3087..bd4db6ad617 100644 --- a/src/test/rustdoc-ui/intra-link-errors.rs +++ b/src/test/rustdoc-ui/intra-link-errors.rs @@ -1,3 +1,4 @@ +#![allow(unclosed_html_tags)] #![deny(broken_intra_doc_links)] //~^ NOTE lint level is defined diff --git a/src/test/rustdoc-ui/intra-link-errors.stderr b/src/test/rustdoc-ui/intra-link-errors.stderr index b63f799535a..13ed978d613 100644 --- a/src/test/rustdoc-ui/intra-link-errors.stderr +++ b/src/test/rustdoc-ui/intra-link-errors.stderr @@ -1,35 +1,40 @@ error: unresolved link to `path::to::nonexistent::module` - --> $DIR/intra-link-errors.rs:7:6 + --> $DIR/intra-link-errors.rs:8:6 | LL | /// [path::to::nonexistent::module] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path` | note: the lint level is defined here - --> $DIR/intra-link-errors.rs:1:9 + --> $DIR/intra-link-errors.rs:2:9 | LL | #![deny(broken_intra_doc_links)] | ^^^^^^^^^^^^^^^^^^^^^^ error: unresolved link to `path::to::nonexistent::macro` - --> $DIR/intra-link-errors.rs:11:6 + --> $DIR/intra-link-errors.rs:12:6 | LL | /// [path::to::nonexistent::macro!] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path` error: unresolved link to `path::to::nonexistent::type` - --> $DIR/intra-link-errors.rs:15:6 + --> $DIR/intra-link-errors.rs:16:6 | LL | /// [type@path::to::nonexistent::type] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path` error: unresolved link to `std::io::not::here` - --> $DIR/intra-link-errors.rs:19:6 + --> $DIR/intra-link-errors.rs:20:6 | LL | /// [std::io::not::here] | ^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not` +<<<<<<< HEAD error: unresolved link to `std::io::not::here` --> $DIR/intra-link-errors.rs:23:6 +======= +error: unresolved link to `std::io::Error::x` + --> $DIR/intra-link-errors.rs:24:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [type@std::io::not::here] | ^^^^^^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not` @@ -41,13 +46,21 @@ LL | /// [std::io::Error::x] | ^^^^^^^^^^^^^^^^^ the struct `Error` has no field or associated item named `x` error: unresolved link to `std::io::ErrorKind::x` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:31:6 +======= + --> $DIR/intra-link-errors.rs:28:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [std::io::ErrorKind::x] | ^^^^^^^^^^^^^^^^^^^^^ the enum `ErrorKind` has no variant or associated item named `x` error: unresolved link to `f::A` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:35:6 +======= + --> $DIR/intra-link-errors.rs:32:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [f::A] | ^^^^ `f` is a function, not a module or type, and cannot have associated items @@ -59,25 +72,41 @@ LL | /// [f::A!] | ^^^^^ `f` is a function, not a module or type, and cannot have associated items error: unresolved link to `S::A` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:43:6 +======= + --> $DIR/intra-link-errors.rs:36:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [S::A] | ^^^^ the struct `S` has no field or associated item named `A` error: unresolved link to `S::fmt` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:47:6 +======= + --> $DIR/intra-link-errors.rs:40:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [S::fmt] | ^^^^^^ the struct `S` has no field or associated item named `fmt` error: unresolved link to `E::D` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:51:6 +======= + --> $DIR/intra-link-errors.rs:44:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [E::D] | ^^^^ the enum `E` has no variant or associated item named `D` error: unresolved link to `u8::not_found` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:55:6 +======= + --> $DIR/intra-link-errors.rs:48:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [u8::not_found] | ^^^^^^^^^^^^^ the builtin type `u8` has no associated item named `not_found` @@ -98,7 +127,11 @@ LL | /// [type@Vec::into_iter] | help: to link to the associated function, add parentheses: `Vec::into_iter()` error: unresolved link to `S` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:68:6 +======= + --> $DIR/intra-link-errors.rs:52:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [S!] | ^^ @@ -107,7 +140,11 @@ LL | /// [S!] | help: to link to the struct, prefix with `struct@`: `struct@S` error: unresolved link to `T::g` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:86:6 +======= + --> $DIR/intra-link-errors.rs:70:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [type@T::g] | ^^^^^^^^^ @@ -116,13 +153,21 @@ LL | /// [type@T::g] | help: to link to the associated function, add parentheses: `T::g()` error: unresolved link to `T::h` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:91:6 +======= + --> $DIR/intra-link-errors.rs:75:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [T::h!] | ^^^^^ the trait `T` has no macro named `h` error: unresolved link to `S::h` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:78:6 +======= + --> $DIR/intra-link-errors.rs:62:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [type@S::h] | ^^^^^^^^^ @@ -131,7 +176,11 @@ LL | /// [type@S::h] | help: to link to the associated function, add parentheses: `S::h()` error: unresolved link to `m` +<<<<<<< HEAD --> $DIR/intra-link-errors.rs:98:6 +======= + --> $DIR/intra-link-errors.rs:82:6 +>>>>>>> Add `unclosed_html_tags` lint | LL | /// [m()] | ^^^ |
