dead_code lint highlights more than the ident for impl function #66627
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a follow-up of #58729 and #63064. PR #65830 fixed the issue of too much being highlighted for plain functions, but it appears to not apply to impl functions.
With the following example code:
(Playground)
The compiler produces these warnings (on 1.41.0-nightly 2019-11-21 53712f8):
This verifies that the aforementioned fix is working for
unused1
/unused2
/unused3
, but not forunused_impl_fn_1
/unused_impl_fn_2
/unused_impl_fn_3
.(pinging @Quantumplation, @estebank)
The text was updated successfully, but these errors were encountered: