diff options
| author | bors <bors@rust-lang.org> | 2024-03-01 19:06:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-01 19:06:39 +0000 |
| commit | 2dceda4f32b97f60b122f2b32491e0267ef5cc0c (patch) | |
| tree | 4989e8c8638ecb5f15eb0f2435bc8fa4dc1d634c /compiler/rustc_lint/src/context/diagnostics.rs | |
| parent | 17edacef07e8afc3b580ed8feead6c5e90d24a56 (diff) | |
| parent | ff22925e500e767ffcc5485d006174f7d74e21f0 (diff) | |
| download | rust-2dceda4f32b97f60b122f2b32491e0267ef5cc0c.tar.gz rust-2dceda4f32b97f60b122f2b32491e0267ef5cc0c.zip | |
Auto merge of #121859 - matthiaskrgr:rollup-i724wpm, r=matthiaskrgr
Rollup of 12 pull requests Successful merges: - #120646 (Fix incorrect suggestion for uninitialized binding in pattern) - #121416 (Improve error messages for generics with default parameters) - #121475 (Add tidy check for .stderr/.stdout files for non-existent test revisions) - #121580 (make unused_imports less assertive in test modules) - #121736 (Remove `Mutex::unlock` Function) - #121784 (Make the success arms of `if lhs || rhs` meet up in a separate block) - #121818 (CFI: Remove unused `typeid_for_fnsig`) - #121819 (Handle stashing of delayed bugs) - #121828 (Remove unused fluent messages) - #121831 (Fix typo in comment) - #121850 (Make `ZeroablePrimitive` trait unsafe.) - #121853 (normalizes-to: handle negative impls) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_lint/src/context/diagnostics.rs | 2 |
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 14e4c79563b..728996f0741 100644 --- a/compiler/rustc_lint/src/context/diagnostics.rs +++ b/compiler/rustc_lint/src/context/diagnostics.rs @@ -104,7 +104,7 @@ pub(super) fn builtin(sess: &Session, diagnostic: BuiltinLintDiagnostics, diag: if let Some(span) = in_test_module { diag.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", ); } } |
