Use IndexMap for handling stable Ty
This commit is contained in:
parent
3f60165d27
commit
17f6df9c63
4 changed files with 23 additions and 29 deletions
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue