too_long_first_doc_paragraph
incorrect suggestion for module-level doc
#13309
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
Related PR: #12993
For
too_long_first_doc_paragraph
in module-level doc, it should suggest to add an empty line with//!
under certain conditions. However, the current implementation will suggest to add///
only.The module-level doc is specified because I found this rule not checking crate-level doc, which may be another issue.
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: