make unused_imports less assertive in test modules

closes #121502
This commit is contained in:
Suyashtnt
2024-02-25 09:37:57 +02:00
parent e9f9594913
commit 748c6151be
2 changed files with 7 additions and 7 deletions

View File

@@ -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",
);
}
}