Use EarlyBinder in rustc_type_ir, simplify imports
This commit is contained in:
parent
993553ceb8
commit
f92292978f
3 changed files with 23 additions and 27 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue