Skip to content

Commit 8ea26ca

Browse files
authored
Rollup merge of rust-lang#106835 - compiler-errors:new-solver-gat-rebase-oops, 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`
2 parents cf533dd + 05f664a commit 8ea26ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/solve/project_goals.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
171171
let impl_substs_with_gat = goal.predicate.projection_ty.substs.rebase_onto(
172172
tcx,
173173
goal_trait_ref.def_id,
174-
impl_trait_ref.substs,
174+
impl_substs,
175175
);
176176
let substs = translate_substs(
177177
acx.infcx,

0 commit comments

Comments
 (0)