tests_outside_test_module can be triggered in integration tests #11024
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
tests_outside_test_module
can be triggered in integration tests.This actually came up because I was trying out RFC 3389
manifest-lint
which helpfully applies lint configuration to all integration tests.manifest-lint
isn't required to trigger the issue, though.Applying the suggestion given by the lint does work (i.e. still runs the test and silences the warning), but is redundant since it's already in an integration test.
Lint Name
tests_outside_test_module
Reproducer
I tried this code in
tests/integrations/main.rs
:I saw this happen when running
cargo clippy --tests
:I expected to see no warnings generated.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: