1
Fork 0

Use EarlyBinder in rustc_type_ir, simplify imports

This commit is contained in:
Michael Goulet 2024-05-26 20:53:00 -04:00
parent 993553ceb8
commit f92292978f
3 changed files with 23 additions and 27 deletions

View file

@ -151,8 +151,8 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
self.generics_of(def_id)
}
fn type_of_instantiated(self, def_id: DefId, args: ty::GenericArgsRef<'tcx>) -> Ty<'tcx> {
self.type_of(def_id).instantiate(self, args)
fn type_of(self, def_id: DefId) -> ty::EarlyBinder<'tcx, Ty<'tcx>> {
self.type_of(def_id)
}
fn alias_ty_kind(self, alias: ty::AliasTy<'tcx>) -> ty::AliasTyKind {