AliasTy::new instead of tcx method

This commit is contained in:
lcnr 2023-10-18 13:57:19 +02:00
parent 9ee26d078d
commit d9dc5ee072

View file

@ -1133,7 +1133,7 @@ pub fn make_projection<'tcx>(
#[cfg(debug_assertions)]
assert_generic_args_match(tcx, assoc_item.def_id, args);
Some(tcx.mk_alias_ty(assoc_item.def_id, args))
Some(ty::AliasTy::new(tcx, assoc_item.def_id, args))
}
helper(
tcx,