Rename SubdiagnosticMessage
as SubdiagMessage
.
This commit is contained in:
parent
f16a8d0390
commit
60ea6e2831
12 changed files with 83 additions and 85 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::DiagMessage | sym::SubdiagnosticMessage)
|
||||
&& matches!(name, sym::DiagMessage | sym::SubdiagMessage)
|
||||
{
|
||||
found_diagnostic_message = true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue