Skip to content

Commit 1eb1e18

Browse files
committed
Adjust expected errors for a rustdoc test
`pulldown-cmark` has slightly different behavior between 0.11.0 and 0.11.2, causing one of the `unportable-markdown` tests to no longer emit an error. Per [1], remove the error annotation and bless the output. [1]: #128722 (comment)
1 parent b1b1dd1 commit 1eb1e18

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

tests/rustdoc-ui/unportable-markdown.rs

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub struct GfmFootnotes;
1919
/// <https://github.com/pulldown-cmark/pulldown-cmark/pull/773>
2020
///
2121
/// test [^foo][^bar]
22-
//~^ ERROR unportable markdown
2322
///
2423
/// [^foo]: test
2524
/// [^bar]: test2
+5-21
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
error: unportable markdown
2-
--> $DIR/unportable-markdown.rs:21:10
2+
--> $DIR/unportable-markdown.rs:48:5
33
|
4-
LL | /// test [^foo][^bar]
5-
| ^^^^^^
4+
LL | /// >bar
5+
| ^
66
|
7-
= help: confusing footnote reference and link
7+
= help: confusing block quote with no space after the `>` marker
88
note: the lint level is defined here
99
--> $DIR/unportable-markdown.rs:8:9
1010
|
1111
LL | #![deny(rustdoc::unportable_markdown)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13-
help: if it should not be a footnote, escape it
14-
|
15-
LL | /// test \[^foo][^bar]
16-
| +
17-
help: if the footnote is intended, add a space
18-
|
19-
LL | /// test [^foo] [^bar]
20-
| +
21-
22-
error: unportable markdown
23-
--> $DIR/unportable-markdown.rs:49:5
24-
|
25-
LL | /// >bar
26-
| ^
27-
|
28-
= help: confusing block quote with no space after the `>` marker
2913
help: if the quote is intended, add a space
3014
|
3115
LL | /// > bar
@@ -35,5 +19,5 @@ help: if it should not be a quote, escape it
3519
LL | /// \>bar
3620
| +
3721

38-
error: aborting due to 2 previous errors
22+
error: aborting due to 1 previous error
3923

0 commit comments

Comments
 (0)