File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -775,12 +775,17 @@ void RewriteSystem::minimizeRewriteSystem() {
775
775
}
776
776
777
777
// / In a conformance-valid rewrite system, any rule with unresolved symbols on
778
- // / the left or right hand side should have been simplified by another rule.
778
+ // / the left or right hand side should be redundant. The presence of unresolved
779
+ // / non-redundant rules means one of the original requirements written by the
780
+ // / user was invalid.
779
781
bool RewriteSystem::hadError () const {
780
782
assert (Complete);
781
783
assert (Minimized);
782
784
783
785
for (const auto &rule : Rules) {
786
+ if (!isInMinimizationDomain (rule.getLHS ().getRootProtocol ()))
787
+ continue ;
788
+
784
789
if (rule.isPermanent ())
785
790
continue ;
786
791
You can’t perform that action at this time.
0 commit comments