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 e3488ce commit 93b94f9Copy full SHA for 93b94f9
lib/AST/RequirementMachine/MinimalConformances.cpp
@@ -266,11 +266,13 @@ RewriteSystem::decomposeTermIntoConformanceRuleLeftHandSides(
266
267
const auto &step = *steps.begin();
268
269
-#ifndef NDEBUG
270
const auto &rule = getRule(step.getRuleID());
271
assert(rule.isAnyConformanceRule());
272
- assert(!rule.isIdentityConformanceRule());
273
-#endif
+
+ // The identity conformance ([P].[P] => [P]) decomposes to an empty
+ // conformance path.
274
+ if (rule.isIdentityConformanceRule())
275
+ return;
276
277
assert(step.Kind == RewriteStep::Rule);
278
assert(step.EndOffset == 0);
0 commit comments