From 395b1f5bf333e2ff168a3cf34592a816cab6016c Mon Sep 17 00:00:00 2001 From: blyxyas Date: Fri, 28 Apr 2023 20:40:47 +0200 Subject: [PATCH] Rename items + Delete `imported_module.stderr` --- tests/ui/items_after_test_module/imported_module.rs | 6 ++++-- tests/ui/items_after_test_module/imported_module.stderr | 0 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 tests/ui/items_after_test_module/imported_module.stderr diff --git a/tests/ui/items_after_test_module/imported_module.rs b/tests/ui/items_after_test_module/imported_module.rs index 22b1d3e2a9b..6a757aef48e 100644 --- a/tests/ui/items_after_test_module/imported_module.rs +++ b/tests/ui/items_after_test_module/imported_module.rs @@ -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 { () => {}; } diff --git a/tests/ui/items_after_test_module/imported_module.stderr b/tests/ui/items_after_test_module/imported_module.stderr deleted file mode 100644 index e69de29bb2d..00000000000