@@ -1185,9 +1185,9 @@ ValueDecl *DerivedConformance::deriveHashable(ValueDecl *requirement) {
1185
1185
auto hashableProto = C.getProtocol (KnownProtocolKind::Hashable);
1186
1186
if (!canDeriveConformance (getConformanceContext (), Nominal,
1187
1187
hashableProto)) {
1188
- TC. diagnose ( ConformanceDecl->getLoc (), diag::type_does_not_conform,
1189
- Nominal->getDeclaredType (),
1190
- hashableProto->getDeclaredType ());
1188
+ ConformanceDecl->diagnose ( diag::type_does_not_conform,
1189
+ Nominal->getDeclaredType (),
1190
+ hashableProto->getDeclaredType ());
1191
1191
return nullptr ;
1192
1192
}
1193
1193
@@ -1213,13 +1213,13 @@ ValueDecl *DerivedConformance::deriveHashable(ValueDecl *requirement) {
1213
1213
// hashValue has an explicit implementation, but hash(into:) doesn't.
1214
1214
// Emit a deprecation warning, then derive hash(into:) in terms of
1215
1215
// hashValue.
1216
- TC. diagnose ( hashValueDecl->getLoc (), diag::hashvalue_implementation,
1217
- Nominal->getDeclaredType ());
1216
+ hashValueDecl->diagnose ( diag::hashvalue_implementation,
1217
+ Nominal->getDeclaredType ());
1218
1218
return deriveHashable_hashInto (*this ,
1219
1219
&deriveBodyHashable_compat_hashInto);
1220
1220
}
1221
1221
}
1222
1222
1223
- TC. diagnose ( requirement->getLoc (), diag::broken_hashable_requirement);
1223
+ requirement->diagnose ( diag::broken_hashable_requirement);
1224
1224
return nullptr ;
1225
1225
}
0 commit comments