about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/items_after_test_module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/items_after_test_module.rs b/clippy_lints/src/items_after_test_module.rs
index 96097575c9c..b992d689aa9 100644
--- a/clippy_lints/src/items_after_test_module.rs
+++ b/clippy_lints/src/items_after_test_module.rs
@@ -74,7 +74,7 @@ impl LateLintPass<'_> for ItemsAfterTestModule {
                         if mitem.has_name(sym::test);
                         then {
 							was_test_mod_visited = true;
-                            test_mod_span = Some(module.spans.inner_span.with_lo(item.span.lo()));
+                            test_mod_span = Some(item.span);
                         }
                     }
                 }