dead_code lint should not report items within an already reported struct/enum/module #31188
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
For example, a library with this code:
results in these warnings when compiled:
Reporting both struct
A
and methodhello
in this case is noisy and likely misleading (e.g. add the following line to the code):In my opinion, items within an already-reported item should not be reported (in this case, only
A
should be reported as unused).The text was updated successfully, but these errors were encountered: