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

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