blacklisted_name
lint should not run inside the test code
#7305
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name:
blacklisted_name
I tried this code:
I expected to see this happen:
blacklisted_name
lint is not emitted. Foo is an OK name for tests, displaying something that is not really important as an object itself and telling programmers to focus on other things.Instead, this happened:
blacklisted_name
lint is emitted.Meta
cargo clippy -V
: clippy 0.1.52 (9bc8c42b 2021-05-09)rustc -Vv
:The text was updated successfully, but these errors were encountered: