mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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]: https://github.com/rust-lang/rust/pull/128722#issuecomment-2295522292
This commit is contained in:
parent
b1b1dd17d3
commit
1eb1e1816d
@ -19,7 +19,6 @@ pub struct GfmFootnotes;
|
|||||||
/// <https://github.com/pulldown-cmark/pulldown-cmark/pull/773>
|
/// <https://github.com/pulldown-cmark/pulldown-cmark/pull/773>
|
||||||
///
|
///
|
||||||
/// test [^foo][^bar]
|
/// test [^foo][^bar]
|
||||||
//~^ ERROR unportable markdown
|
|
||||||
///
|
///
|
||||||
/// [^foo]: test
|
/// [^foo]: test
|
||||||
/// [^bar]: test2
|
/// [^bar]: test2
|
||||||
|
@ -1,31 +1,15 @@
|
|||||||
error: unportable markdown
|
error: unportable markdown
|
||||||
--> $DIR/unportable-markdown.rs:21:10
|
--> $DIR/unportable-markdown.rs:48:5
|
||||||
|
|
|
||||||
LL | /// test [^foo][^bar]
|
|
||||||
| ^^^^^^
|
|
||||||
|
|
|
||||||
= help: confusing footnote reference and link
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/unportable-markdown.rs:8:9
|
|
||||||
|
|
|
||||||
LL | #![deny(rustdoc::unportable_markdown)]
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
help: if it should not be a footnote, escape it
|
|
||||||
|
|
|
||||||
LL | /// test \[^foo][^bar]
|
|
||||||
| +
|
|
||||||
help: if the footnote is intended, add a space
|
|
||||||
|
|
|
||||||
LL | /// test [^foo] [^bar]
|
|
||||||
| +
|
|
||||||
|
|
||||||
error: unportable markdown
|
|
||||||
--> $DIR/unportable-markdown.rs:49:5
|
|
||||||
|
|
|
|
||||||
LL | /// >bar
|
LL | /// >bar
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= help: confusing block quote with no space after the `>` marker
|
= help: confusing block quote with no space after the `>` marker
|
||||||
|
note: the lint level is defined here
|
||||||
|
--> $DIR/unportable-markdown.rs:8:9
|
||||||
|
|
|
||||||
|
LL | #![deny(rustdoc::unportable_markdown)]
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
help: if the quote is intended, add a space
|
help: if the quote is intended, add a space
|
||||||
|
|
|
|
||||||
LL | /// > bar
|
LL | /// > bar
|
||||||
@ -35,5 +19,5 @@ help: if it should not be a quote, escape it
|
|||||||
LL | /// \>bar
|
LL | /// \>bar
|
||||||
| +
|
| +
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 1 previous error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user