missing_docs_in_private_items
requiring docs on function-local items
#13802
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
When turning on the
missing_docs_in_private_items
lint, items that exist within a function get caught for not having documentation comments, even though adding doc comments there would not emit any documentation anyways. I've seen that this is true for inner functions and macros, and it is probably true for all items that can be declared within a function.I feel it doesn't make too much sense to require doc comments there since I don't think there is a way to even view them via
cargo doc
.Lint Name
missing_docs_in_private_items
Reproducer
I tried this code:
I saw this happen:
I expected to see no clippy warning.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: