rust-clippy/clippy_lints
bors 34b7d1559f Auto merge of #11779 - partiallytyped:11775, r=blyxyas
[`mod_module_files`] Don't emit lint for mod.rs in tests

fixes: #11775

current state: indiscriminately emits the lint for mod files in tests.

The following

```
tests/
  common/
    mod.rs
  test.rs
```

is a common pattern for code shared across the tests and is suggested in the rust book. The change adds an additional check to verify that the mod file is not in tests.

changelog: Fix [`mod_module_files`]: false positive for mod files in tests folder
2023-11-08 22:27:13 +00:00
..
src Auto merge of #11779 - partiallytyped:11775, r=blyxyas 2023-11-08 22:27:13 +00:00
Cargo.toml Remove internal feature from clippy_utils 2023-10-27 13:13:26 +00:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.