rust-clippy/tests/ui/doc
Michael Howell 6de87829da doc_lazy_continuation: blank comment line for gap
This change addresses cases where doc comments are separated
by blank lines, comments, or non-doc-comment attributes,
like this:

```rust
/// - first line
// not part of doc comment
/// second line
```

Before this commit, Clippy gave a pedantically-correct
warning about how you needed to indent the second line.
This is unlikely to be what the user intends, and has
been described as a "false positive" (since Clippy is
warning you about a highly unintuitive behavior that
Rustdoc actually has, we definitely want it to output
*something*, but the suggestion to indent was poor).

https://github.com/rust-lang/rust-clippy/issues/12917
2024-06-27 17:09:54 -07:00
..
doc-fixable.fixed feat: auto-fix for bare URLs in doc comments 2024-05-24 14:30:42 -07:00
doc-fixable.rs feat: auto-fix for bare URLs in doc comments 2024-05-24 14:30:42 -07:00
doc-fixable.stderr feat: auto-fix for bare URLs in doc comments 2024-05-24 14:30:42 -07:00
doc_lazy_blank_line.fixed doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_blank_line.rs doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_blank_line.stderr doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_blockquote.fixed doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_blockquote.rs doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_blockquote.stderr doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_list.fixed doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_list.rs doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
doc_lazy_list.stderr doc_lazy_continuation: blank comment line for gap 2024-06-27 17:09:54 -07:00
issue_902.rs Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup 2021-11-04 12:52:36 +00:00
issue_1832.rs Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup 2021-11-04 12:52:36 +00:00
issue_9473.fixed Add regression test for #9473 2024-03-05 12:07:37 +01:00
issue_9473.rs Add regression test for #9473 2024-03-05 12:07:37 +01:00
issue_9473.stderr Add regression test for #9473 2024-03-05 12:07:37 +01:00
issue_10262.fixed Also handle <blockquote> and <q> HTML tags 2024-03-13 19:31:01 +01:00
issue_10262.rs Also handle <blockquote> and <q> HTML tags 2024-03-13 19:31:01 +01:00
issue_10262.stderr Add regression test for #10262 2024-03-13 19:25:36 +01:00
issue_12795.fixed Correctly handle closing parens in missing_backticks doc lint 2024-05-21 14:55:30 +02:00
issue_12795.rs Correctly handle closing parens in missing_backticks doc lint 2024-05-21 14:55:30 +02:00
issue_12795.stderr Correctly handle closing parens in missing_backticks doc lint 2024-05-21 14:55:30 +02:00
needless_doctest_main.rs Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup 2023-07-02 14:59:02 +02:00
unbalanced_ticks.rs Reuse rustdoc's doc comment handling in Clippy 2023-09-08 23:42:57 +00:00
unbalanced_ticks.stderr Remove $DIR replacement in test output 2024-02-17 12:34:54 +00:00