We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0895081 commit a85877cCopy full SHA for a85877c
lib/AST/RequirementMachine/RequirementLowering.cpp
@@ -820,6 +820,11 @@ void swift::rewriting::applyInverses(
820
inverses[canSubject] = state;
821
}
822
823
+ // Fast-path: if there are no valid inverses, then there are no requirements
824
+ // to be removed.
825
+ if (inverses.empty())
826
+ return;
827
+
828
// Scan the structural requirements and cancel out any inferred requirements
829
// based on the inverses we saw.
830
result.erase(llvm::remove_if(result, [&](StructuralRequirement structReq) {
0 commit comments