@@ -53,14 +53,15 @@ use rustc_data_structures::accumulate_vec::AccumulateVec;
5353use rustc_data_structures:: stable_hasher:: { HashStable , hash_stable_hashmap,
5454 StableHasher , StableHasherResult ,
5555 StableVec } ;
56+ use rustc_data_structures;
5657use arena:: { TypedArena , DroplessArena } ;
5758use rustc_const_math:: { ConstInt , ConstUsize } ;
5859use rustc_data_structures:: indexed_vec:: IndexVec ;
5960use std:: any:: Any ;
6061use std:: borrow:: Borrow ;
6162use std:: cell:: { Cell , RefCell } ;
6263use std:: cmp:: Ordering ;
63- use std :: collections :: hash_map :: { self , Entry } ;
64+ use ordermap :: { self , Entry } ;
6465use std:: hash:: { Hash , Hasher } ;
6566use std:: mem;
6667use std:: ops:: Deref ;
@@ -275,7 +276,7 @@ impl<'a, V> LocalTableInContext<'a, V> {
275276 self . data . get ( & id. local_id )
276277 }
277278
278- pub fn iter ( & self ) -> hash_map :: Iter < hir:: ItemLocalId , V > {
279+ pub fn iter ( & self ) -> ordermap :: Iter < hir:: ItemLocalId , V > {
279280 self . data . iter ( )
280281 }
281282}
@@ -299,7 +300,7 @@ impl<'a, V> LocalTableInContextMut<'a, V> {
299300 self . data . get_mut ( & id. local_id )
300301 }
301302
302- pub fn entry ( & mut self , id : hir:: HirId ) -> Entry < hir:: ItemLocalId , V > {
303+ pub fn entry ( & mut self , id : hir:: HirId ) -> Entry < hir:: ItemLocalId , V , :: std :: hash :: BuildHasherDefault < rustc_data_structures :: fx :: FxHasher > > {
303304 validate_hir_id_for_typeck_tables ( self . local_id_root , id, true ) ;
304305 self . data . entry ( id. local_id )
305306 }
0 commit comments