Skip to content

Commit f8fcdd1

Browse files
committed
Don't add wf clauses for function args. This is broken
1 parent eb9147f commit f8fcdd1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

chalk-solve/src/clauses.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,12 +755,6 @@ fn match_ty<I: Interner>(
755755
.to_program_clauses(builder, environment),
756756
TyData::Function(quantified_ty) => {
757757
builder.push_fact(WellFormed::Ty(ty.clone()));
758-
quantified_ty
759-
.substitution
760-
.iter(interner)
761-
.map(|p| p.assert_ty_ref(interner))
762-
.map(|ty| match_ty(builder, environment, &ty))
763-
.collect::<Result<_, Floundered>>()?;
764758
}
765759
TyData::BoundVar(_) | TyData::InferenceVar(_, _) => return Err(Floundered),
766760
TyData::Dyn(_) => {}

0 commit comments

Comments
 (0)