Clippy incorrectly reports redundant imported items #12373
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
For my crate
wasmi_core
in https://github.com/wasmi-labs/wasmi/tree/master/crates/core I see the following warnings when runningclippy
on nightly channel:Many more warnings pop up, but they all are very similar to the one above.
This import is required for proper
no_std
builds.In
lib.rs
we do:Thus
alloc
is always available as crate root import.Lint Name
unused_imports
Reproducer
rev = a2f299af2f97af3691e195a4473abaa93bca72f7
)clippy
from currentnightly
channel. (I useclippy 0.1.78 (ef324565 2024-02-27)
)cargo +nightly clippy -p wasmi_core
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: