False positive unused_attributes lint on doc(hidden) attribute on non-trait associated item #97205
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output (on nightly) is:
This warning is incorrect because this is not a trait impl, but an inherent impl.
Tested with local nightly
rustc 1.63.0-nightly (cd282d7f7 2022-05-18)
and Playground2022-05-19 c0672870491e84362f76
.CC #96008 and @fmease
The text was updated successfully, but these errors were encountered: