Skip to content

Commit 186dcf6

Browse files
committed
Fixup program clause folding
1 parent b591d04 commit 186dcf6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

chalk-solve/src/clauses/syntactic_eq.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,6 @@ impl<'i, I: Interner> Folder<'i, I> for SynEqFolder<'i, I> {
8181

8282
let mut conditions = implication.conditions.fold_with(self, outer_binder)?;
8383
let constraints = implication.constraints.fold_with(self, outer_binder)?;
84-
if new_params.is_empty() {
85-
// shift the clause out since we didn't use the dummy binder
86-
return Ok(ProgramClauseData(Binders::empty(
87-
interner,
88-
ProgramClauseImplication {
89-
consequence,
90-
conditions,
91-
constraints,
92-
priority: implication.priority,
93-
}
94-
.shifted_out(interner)?,
95-
))
96-
.intern(interner));
97-
}
9884

9985
binders.extend(new_params.into_iter());
10086

0 commit comments

Comments
 (0)