unused_attributes
false positive (top-level unused_crate_dependencies
with feature(lint_reasons)
)
#111682
Labels
C-bug
Category: This is a bug.
I tried this code:
unused_crate_dependencies
is at top level, as expected. But I get the following warning:Removing the
#[feature(lint_reason)]
removes the warning.Interestingly, adding a
#[deny(…)]
removes the warning too:gives no warning.
But only at certain positions:
gives the warning.
Meta
rustc --version --verbose
:(But IIRC I had the warning already with
1.71.0-nightly (473f916d8 2023-05-03)
)The text was updated successfully, but these errors were encountered: