Skip to content

Commit

Permalink
Rollup merge of #106835 - compiler-errors:new-solver-gat-rebase-oops,…
Browse files Browse the repository at this point in the history
… r=lcnr

new trait solver: rebase impl substs for gats correctly

you might've caught this while working on projection code, if so then you can close this pr

r? `@lcnr`
  • Loading branch information
matthiaskrgr authored Jan 16, 2023
2 parents cf533dd + 05f664a commit 8ea26ca
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 8ea26ca

Please sign in to comment.