mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
f3dd31e214
This is a follow-up for https://github.com/rust-lang/rust/pull/121659, since most cases of unintended block quotes are lazy continuations. The lint is designed to be more generally useful than that, though, because it will also catch unintended list items and unintended block quotes that didn't coincidentally hit a pulldown-cmark bug.
76 lines
2 KiB
Text
76 lines
2 KiB
Text
error: doc quote missing `>` marker
|
|
--> tests/ui/doc/doc_lazy_blockquote.rs:4:5
|
|
|
|
|
LL | /// lazy continuation
|
|
| ^
|
|
|
|
|
= help: if this not intended to be a quote at all, escape it with `\>`
|
|
= note: `-D clippy::doc-lazy-continuation` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::doc_lazy_continuation)]`
|
|
help: add markers to start of line
|
|
|
|
|
LL | /// > lazy continuation
|
|
| +
|
|
|
|
error: doc quote missing `>` marker
|
|
--> tests/ui/doc/doc_lazy_blockquote.rs:20:5
|
|
|
|
|
LL | /// > lazy continuation
|
|
| ^^
|
|
|
|
|
= help: if this not intended to be a quote at all, escape it with `\>`
|
|
help: add markers to start of line
|
|
|
|
|
LL | /// > > lazy continuation
|
|
| +
|
|
|
|
error: doc quote missing `>` marker
|
|
--> tests/ui/doc/doc_lazy_blockquote.rs:27:5
|
|
|
|
|
LL | /// lazy continuation
|
|
| ^
|
|
|
|
|
= help: if this not intended to be a quote at all, escape it with `\>`
|
|
help: add markers to start of line
|
|
|
|
|
LL | /// > > lazy continuation
|
|
| +++
|
|
|
|
error: doc quote missing `>` marker
|
|
--> tests/ui/doc/doc_lazy_blockquote.rs:32:5
|
|
|
|
|
LL | /// lazy continuation
|
|
| ^
|
|
|
|
|
= help: if this not intended to be a quote at all, escape it with `\>`
|
|
help: add markers to start of line
|
|
|
|
|
LL | /// > > lazy continuation
|
|
| +++++++
|
|
|
|
error: doc quote missing `>` marker
|
|
--> tests/ui/doc/doc_lazy_blockquote.rs:37:5
|
|
|
|
|
LL | /// lazy continuation
|
|
| ^
|
|
|
|
|
= help: if this not intended to be a quote at all, escape it with `\>`
|
|
help: add markers to start of line
|
|
|
|
|
LL | /// > > lazy continuation
|
|
| +++++
|
|
|
|
error: doc quote missing `>` marker
|
|
--> tests/ui/doc/doc_lazy_blockquote.rs:45:5
|
|
|
|
|
LL | /// lazy continuation (this results in strange indentation, but still works)
|
|
| ^
|
|
|
|
|
= help: if this not intended to be a quote at all, escape it with `\>`
|
|
help: add markers to start of line
|
|
|
|
|
LL | /// > lazy continuation (this results in strange indentation, but still works)
|
|
| +
|
|
|
|
error: aborting due to 6 previous errors
|
|
|