]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_analysis/src/check/compare_method.rs
Rollup merge of #104592 - ComputerDruid:async_check, r=compiler-errors
[rust.git] / compiler / rustc_hir_analysis / src / check / compare_method.rs
index bfa37c05a194f2e21702b779ba1d2c5ec3d974f2..6b9ce9a4599e2ce45ddd8e8479ec41f32d73d6b7 100644 (file)
@@ -1778,10 +1778,7 @@ pub fn check_type_bounds<'tcx>(
             _ => predicates.push(
                 ty::Binder::bind_with_vars(
                     ty::ProjectionPredicate {
-                        projection_ty: ty::AliasTy {
-                            def_id: trait_ty.def_id,
-                            substs: rebased_substs,
-                        },
+                        projection_ty: tcx.mk_alias_ty(trait_ty.def_id, rebased_substs),
                         term: impl_ty_value.into(),
                     },
                     bound_vars,