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 @@ -570,7 +570,8 @@ void RewriteSystem::verifyRewriteRules(ValidityPolicy policy) const {
570
570
571
571
if (index != 0 ) {
572
572
ASSERT_RULE (symbol.getKind () != Symbol::Kind::GenericParam ||
573
- lhs[index - 1 ].getKind () == Symbol::Kind::PackElement);
573
+ (index == 1 &&
574
+ lhs[index - 1 ].getKind () == Symbol::Kind::PackElement));
574
575
}
575
576
576
577
if (!rule.isLHSSimplified () &&
@@ -626,7 +627,8 @@ void RewriteSystem::verifyRewriteRules(ValidityPolicy policy) const {
626
627
627
628
if (index != 0 ) {
628
629
ASSERT_RULE (symbol.getKind () != Symbol::Kind::GenericParam ||
629
- lhs[index - 1 ].getKind () == Symbol::Kind::PackElement);
630
+ (index == 1 &&
631
+ lhs[index - 1 ].getKind () == Symbol::Kind::PackElement));
630
632
}
631
633
632
634
if (!rule.isRHSSimplified () &&
You can’t perform that action at this time.
0 commit comments