1
Fork 0

Use IndexMap for handling stable Ty

This commit is contained in:
Celina G. Val 2023-10-24 10:38:05 -07:00
parent 3f60165d27
commit 17f6df9c63
4 changed files with 23 additions and 29 deletions

View file

@ -46,7 +46,7 @@ impl<'tcx> RustcInternal<'tcx> for Region {
impl<'tcx> RustcInternal<'tcx> for Ty {
type T = InternalTy<'tcx>;
fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T {
tables.types[self.0]
tables.types[*self]
}
}