Skip to content

Commit 05f664a

Browse files
new trait solver: rebase impl substs for gats correctly
1 parent 0b90256 commit 05f664a

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)