mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsSema.def
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user