diff options
| author | Michael Howell <michael@notriddle.com> | 2022-07-28 13:12:32 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-07-28 13:12:32 -0700 |
| commit | f5cd6b3e9bbe1f020e1784af3227e8d5a9ca7e8f (patch) | |
| tree | e14957b76ad2baadcbf2e8be76ea6afc87ffa650 /src/test | |
| parent | e5682615bb4fdb90e3a37b810a1b7bded2a1199e (diff) | |
| download | rust-f5cd6b3e9bbe1f020e1784af3227e8d5a9ca7e8f.tar.gz rust-f5cd6b3e9bbe1f020e1784af3227e8d5a9ca7e8f.zip | |
rustdoc: align invalid-html-tags lint with commonmark spec
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-ui/invalid-html-tags.rs | 6 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/invalid-html-tags.stderr | 14 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/test/rustdoc-ui/invalid-html-tags.rs b/src/test/rustdoc-ui/invalid-html-tags.rs index cec44b6d2ca..0f9d2e4b35d 100644 --- a/src/test/rustdoc-ui/invalid-html-tags.rs +++ b/src/test/rustdoc-ui/invalid-html-tags.rs @@ -108,3 +108,9 @@ pub fn j() {} /// <Vec<_> shouldn't warn! /// `````` pub fn k() {} + +/// Web Components style <dashed-tags> +//~^ ERROR unclosed HTML tag `dashed-tags` +/// Web Components style </unopened-tag> +//~^ ERROR unopened HTML tag `unopened-tag` +pub fn m() {} diff --git a/src/test/rustdoc-ui/invalid-html-tags.stderr b/src/test/rustdoc-ui/invalid-html-tags.stderr index 335e100c89d..24a455576e8 100644 --- a/src/test/rustdoc-ui/invalid-html-tags.stderr +++ b/src/test/rustdoc-ui/invalid-html-tags.stderr @@ -82,5 +82,17 @@ error: Unclosed HTML comment LL | /// <!-- | ^^^ -error: aborting due to 13 previous errors +error: unopened HTML tag `unopened-tag` + --> $DIR/invalid-html-tags.rs:114:26 + | +LL | /// Web Components style </unopened-tag> + | ^^^^^^^^^^^^^^^ + +error: unclosed HTML tag `dashed-tags` + --> $DIR/invalid-html-tags.rs:112:26 + | +LL | /// Web Components style <dashed-tags> + | ^^^^^^^^^^^^^ + +error: aborting due to 15 previous errors |
