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() {
775775}
776776
777777// / 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.
779781bool RewriteSystem::hadError () const {
780782 assert (Complete);
781783 assert (Minimized);
782784
783785 for (const auto &rule : Rules) {
786+ if (!isInMinimizationDomain (rule.getLHS ().getRootProtocol ()))
787+ continue ;
788+
784789 if (rule.isPermanent ())
785790 continue ;
786791
You can’t perform that action at this time.
0 commit comments