Skip to content

Commit 129a150

Browse files
adamrkjackh726
authored andcommitted
add empty_constraints check for triviality
1 parent 2a126c7 commit 129a150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chalk-engine/src/logic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,8 @@ impl<'forest, I: Interner, C: Context<I> + 'forest, CO: ContextOps<I, C> + 'fore
13281328
// to return.
13291329
let is_trivial_answer = self
13301330
.context
1331-
.is_trivial_substitution(&self.forest.tables[table].table_goal, &answer.subst);
1331+
.is_trivial_substitution(&self.forest.tables[table].table_goal, &answer.subst)
1332+
&& C::empty_constraints(&answer.subst);
13321333

13331334
if is_trivial_answer {
13341335
None

0 commit comments

Comments
 (0)