about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context/diagnostics.rs
diff options
context:
space:
mode:
authorSuyashtnt <suyashtnt@gmail.com>2024-02-25 09:37:57 +0200
committerSuyashtnt <suyashtnt@gmail.com>2024-02-25 09:37:57 +0200
commit748c6151be9906c8bc201fa79b8d1d49715968b2 (patch)
tree41a09324329bc8f8bb4b17f0feb38f59cc04085c /compiler/rustc_lint/src/context/diagnostics.rs
parente9f95949138125bb1b98ed213a41b9aa825bacf5 (diff)
downloadrust-748c6151be9906c8bc201fa79b8d1d49715968b2.tar.gz
rust-748c6151be9906c8bc201fa79b8d1d49715968b2.zip
make unused_imports less assertive in test modules
closes #121502
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
-rw-r--r--compiler/rustc_lint/src/context/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/context/diagnostics.rs b/compiler/rustc_lint/src/context/diagnostics.rs
index 86434002e2c..12b6a15eedd 100644
--- a/compiler/rustc_lint/src/context/diagnostics.rs
+++ b/compiler/rustc_lint/src/context/diagnostics.rs
@@ -108,7 +108,7 @@ pub(super) fn builtin(
             if let Some(span) = in_test_module {
                 db.span_help(
                     sess.source_map().guess_head_span(span),
-                    "consider adding a `#[cfg(test)]` to the containing module",
+                    "if this is a test module, consider adding a `#[cfg(test)]` to the containing module",
                 );
             }
         }