File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -5196,10 +5196,8 @@ void ConformanceChecker::ensureRequirementsAreSatisfied() {
5196
5196
return false ;
5197
5197
});
5198
5198
5199
- for (auto req : proto->getRequirementSignature ().getRequirements ()) {
5200
- if (req.getKind () == RequirementKind::Conformance) {
5201
- auto depTy = req.getFirstType ();
5202
- auto *proto = req.getProtocolDecl ();
5199
+ Conformance->forEachAssociatedConformance (
5200
+ [&](Type depTy, ProtocolDecl *proto, unsigned index) {
5203
5201
auto conformance = Conformance->getAssociatedConformance (depTy, proto);
5204
5202
if (conformance.isConcrete ()) {
5205
5203
auto *concrete = conformance.getConcrete ();
@@ -5208,8 +5206,9 @@ void ConformanceChecker::ensureRequirementsAreSatisfied() {
5208
5206
conformance, where,
5209
5207
depTy, replacementTy);
5210
5208
}
5211
- }
5212
- }
5209
+
5210
+ return false ;
5211
+ });
5213
5212
}
5214
5213
5215
5214
#pragma mark Protocol conformance checking
You can’t perform that action at this time.
0 commit comments