AST: Cut down on DescriptiveDeclKind usage in DiagnosticsSema.def

This commit is contained in:
Anthony Latsis
2025-04-04 02:58:49 +01:00
parent d93b6a4e4d
commit a0930dec31
27 changed files with 453 additions and 514 deletions

View File

@@ -274,9 +274,9 @@ void DerivedConformance::diagnoseIfSynthesisUnsupportedForDecl(
if (shouldDiagnose) {
auto &ctx = nominal->getASTContext();
ctx.Diags.diagnose(
nominal->getLoc(), diag::automatic_protocol_synthesis_unsupported,
protocol->getName().str(), nominal->getDescriptiveKind());
ctx.Diags.diagnose(nominal->getLoc(),
diag::automatic_protocol_synthesis_unsupported, protocol,
nominal);
}
}