File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,8 @@ void RewriteSystem::verifyRewriteRules(ValidityPolicy policy) const {
556556
557557 if (index != 0 ) {
558558 ASSERT_RULE (symbol.getKind () != Symbol::Kind::GenericParam ||
559- lhs[index - 1 ].getKind () == Symbol::Kind::PackElement);
559+ (index == 1 &&
560+ lhs[index - 1 ].getKind () == Symbol::Kind::PackElement));
560561 }
561562
562563 if (!rule.isLHSSimplified () &&
@@ -612,7 +613,8 @@ void RewriteSystem::verifyRewriteRules(ValidityPolicy policy) const {
612613
613614 if (index != 0 ) {
614615 ASSERT_RULE (symbol.getKind () != Symbol::Kind::GenericParam ||
615- lhs[index - 1 ].getKind () == Symbol::Kind::PackElement);
616+ (index == 1 &&
617+ lhs[index - 1 ].getKind () == Symbol::Kind::PackElement));
616618 }
617619
618620 if (!rule.isRHSSimplified () &&
You can’t perform that action at this time.
0 commit comments