1
Fork 0

Make higher-ranked projections in object types work in new solver

This commit is contained in:
Michael Goulet 2023-02-22 01:26:01 +00:00
parent 98525aeee7
commit 2540c2b761
4 changed files with 48 additions and 18 deletions

View file

@ -110,7 +110,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for TraitPredicate<'tcx> {
};
nested_goals.extend(
structural_traits::predicates_for_object_candidate(
tcx,
ecx,
goal.param_env,
goal.predicate.trait_ref,
bounds,
)