@@ -1179,7 +1179,7 @@ ValueDecl *DerivedConformance::deriveEncodable(ValueDecl *requirement) {
1179
1179
// diagnostics, then potentially collect notes. If we succeed in
1180
1180
// synthesizing Encodable, we can cancel the transaction and get rid of the
1181
1181
// fake failures.
1182
- auto diagnosticTransaction = DiagnosticTransaction (TC.Context .Diags );
1182
+ DiagnosticTransaction diagnosticTransaction (TC.Context .Diags );
1183
1183
TC.diagnose (ConformanceDecl, diag::type_does_not_conform,
1184
1184
Nominal->getDeclaredType (), getProtocolType ());
1185
1185
TC.diagnose (requirement, diag::no_witnesses, diag::RequirementKind::Func,
@@ -1215,7 +1215,7 @@ ValueDecl *DerivedConformance::deriveDecodable(ValueDecl *requirement) {
1215
1215
// diagnostics produced by canSynthesize and deriveDecodable_init to produce
1216
1216
// them in the right order -- see the comment in deriveEncodable for
1217
1217
// background on this transaction.
1218
- auto diagnosticTransaction = DiagnosticTransaction (TC.Context .Diags );
1218
+ DiagnosticTransaction diagnosticTransaction (TC.Context .Diags );
1219
1219
TC.diagnose (ConformanceDecl->getLoc (), diag::type_does_not_conform,
1220
1220
Nominal->getDeclaredType (), getProtocolType ());
1221
1221
TC.diagnose (requirement, diag::no_witnesses,
0 commit comments