Skip to content

Commit

Permalink
new trait solver: rebase impl substs for gats correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Jan 14, 2023
1 parent 0b90256 commit 05f664a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_trait_selection/src/solve/project_goals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
let impl_substs_with_gat = goal.predicate.projection_ty.substs.rebase_onto(
tcx,
goal_trait_ref.def_id,
impl_trait_ref.substs,
impl_substs,
);
let substs = translate_substs(
acx.infcx,
Expand Down

0 comments on commit 05f664a

Please sign in to comment.