Skip to content

Commit 395b1f5

Browse files
committed
Rename items + Delete imported_module.stderr
1 parent 2b5820d commit 395b1f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/ui/items_after_test_module/imported_module.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![allow(unused)]
33
#![warn(clippy::items_after_test_module)]
44

5+
// Nothing here should lint, as `tests` is an imported module (that has no body).
6+
57
fn main() {}
68

79
fn should_not_lint() {}
@@ -10,9 +12,9 @@ fn should_not_lint() {}
1012
#[cfg(test)]
1113
mod tests; // Should not lint
1214

13-
fn should_lint() {}
15+
fn should_not_lint2() {}
1416

15-
const SHOULD_ALSO_LINT: usize = 1;
17+
const SHOULD_ALSO_NOT_LINT: usize = 1;
1618
macro_rules! should_not_lint {
1719
() => {};
1820
}

tests/ui/items_after_test_module/imported_module.stderr

Whitespace-only changes.

0 commit comments

Comments
 (0)