Rename DiagnosticMessage
as DiagMessage
.
This commit is contained in:
parent
d849f5c225
commit
18715c98c6
49 changed files with 253 additions and 261 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue