Skip to content

Commit 31c5585

Browse files
committed
Match program clauses for opaque placeholder
1 parent b5f04ad commit 31c5585

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

chalk-solve/src/clauses.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ fn program_clauses_that_could_match<I: Interner>(
258258
});
259259
}
260260

261+
if let TyData::Apply(ApplicationTy {
262+
name: TypeName::OpaqueType(opaque_ty_id),
263+
..
264+
}) = self_ty.data(interner)
265+
{
266+
db.opaque_ty_data(*opaque_ty_id).to_program_clauses(builder);
267+
}
268+
261269
if let Some(well_known) = trait_datum.well_known {
262270
builtin_traits::add_builtin_program_clauses(
263271
db,

0 commit comments

Comments
 (0)