diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-29 11:58:51 +1100 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-05 12:14:49 +1100 | 
| commit | 18715c98c67235274843974c928a70e84946398b (patch) | |
| tree | b7b610fd528d57a6efcbc78c734e89f1f236f8ec /compiler/rustc_lint/src/internal.rs | |
| parent | d849f5c2259ae6b5d2c11e42ff4b78f303a9d909 (diff) | |
| download | rust-18715c98c67235274843974c928a70e84946398b.tar.gz rust-18715c98c67235274843974c928a70e84946398b.zip  | |
Rename `DiagnosticMessage` as `DiagMessage`.
Diffstat (limited to 'compiler/rustc_lint/src/internal.rs')
| -rw-r--r-- | compiler/rustc_lint/src/internal.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs index a071fa488bc..85d78374881 100644 --- a/compiler/rustc_lint/src/internal.rs +++ b/compiler/rustc_lint/src/internal.rs @@ -403,7 +403,7 @@ impl LateLintPass<'_> for Diagnostics { debug!(?ty); if let Some(adt_def) = ty.ty_adt_def() && let Some(name) = cx.tcx.get_diagnostic_name(adt_def.did()) - && matches!(name, sym::DiagnosticMessage | sym::SubdiagnosticMessage) + && matches!(name, sym::DiagMessage | sym::SubdiagnosticMessage) { found_diagnostic_message = true; break;  | 
