dead_code
lint does not trigger for traits at all.
#66543
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'd expect some kind of warning for a crate defining but not exporting and not using a trait. While it would be great to also report traits that are implemented for types but whose implementation is never used, this may be significantly harder to detect, not sure.
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: