mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 20:13:24 +00:00
6de87829da
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 |
||
---|---|---|
.. | ||
doc-fixable.fixed | ||
doc-fixable.rs | ||
doc-fixable.stderr | ||
doc_lazy_blank_line.fixed | ||
doc_lazy_blank_line.rs | ||
doc_lazy_blank_line.stderr | ||
doc_lazy_blockquote.fixed | ||
doc_lazy_blockquote.rs | ||
doc_lazy_blockquote.stderr | ||
doc_lazy_list.fixed | ||
doc_lazy_list.rs | ||
doc_lazy_list.stderr | ||
issue_902.rs | ||
issue_1832.rs | ||
issue_9473.fixed | ||
issue_9473.rs | ||
issue_9473.stderr | ||
issue_10262.fixed | ||
issue_10262.rs | ||
issue_10262.stderr | ||
issue_12795.fixed | ||
issue_12795.rs | ||
issue_12795.stderr | ||
needless_doctest_main.rs | ||
unbalanced_ticks.rs | ||
unbalanced_ticks.stderr |