mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Rename items + Delete imported_module.stderr
This commit is contained in:
parent
2b5820d58b
commit
395b1f5bf3
2 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
#![allow(unused)]
|
||||
#![warn(clippy::items_after_test_module)]
|
||||
|
||||
// Nothing here should lint, as `tests` is an imported module (that has no body).
|
||||
|
||||
fn main() {}
|
||||
|
||||
fn should_not_lint() {}
|
||||
|
@ -10,9 +12,9 @@ fn should_not_lint() {}
|
|||
#[cfg(test)]
|
||||
mod tests; // Should not lint
|
||||
|
||||
fn should_lint() {}
|
||||
fn should_not_lint2() {}
|
||||
|
||||
const SHOULD_ALSO_LINT: usize = 1;
|
||||
const SHOULD_ALSO_NOT_LINT: usize = 1;
|
||||
macro_rules! should_not_lint {
|
||||
() => {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue