about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-01-14 04:47:06 +0000
committerMichael Goulet <michael@errs.io>2023-01-14 04:47:10 +0000
commit05f664a441542c4f50ea8336cfa403c327ee8ecb (patch)
tree9fea08c2d032b51b1cf2207a72d4e10759a1cc99
parent0b90256ada21c6a81b4c18f2c7a23151ab5fc232 (diff)
downloadrust-05f664a441542c4f50ea8336cfa403c327ee8ecb.tar.gz
rust-05f664a441542c4f50ea8336cfa403c327ee8ecb.zip
new trait solver: rebase impl substs for gats correctly
-rw-r--r--compiler/rustc_trait_selection/src/solve/project_goals.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/project_goals.rs b/compiler/rustc_trait_selection/src/solve/project_goals.rs
index 3d649bea19d..25588138c43 100644
--- a/compiler/rustc_trait_selection/src/solve/project_goals.rs
+++ b/compiler/rustc_trait_selection/src/solve/project_goals.rs
@@ -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,