unused_unit false positive on macro input #7055
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: clippy::unused_unit
I tried this code:
I expected to see this happen: no linting about the unit being unneeded
Instead, this happened: lint says unit expression is unneeded, but macro won't accept removing it
This looks related to #4076, except
select!
depends on a proc macro internallyMeta
cargo clippy -V
: clippy 0.1.52 (07e0e2e 2021-03-24)rustc -Vv
:(reproducible on latest stable too)
The text was updated successfully, but these errors were encountered: