Auto merge of #116887 - lcnr:alias-ty-constructor, r=compiler-errors

`TyCtxt::mk_alias_ty` -> `AliasTy::new`
This commit is contained in:
bors
2023-10-18 15:17:48 +00:00
15 changed files with 46 additions and 39 deletions

View File

@@ -704,7 +704,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
let ty = traits::normalize_projection_type(
self,
param_env,
tcx.mk_alias_ty(tcx.lang_items().deref_target()?, trait_ref.args),
ty::AliasTy::new(tcx, tcx.lang_items().deref_target()?, trait_ref.args),
cause.clone(),
0,
// We're *intentionally* throwing these away,