@@ -53,14 +53,15 @@ use rustc_data_structures::accumulate_vec::AccumulateVec;
53
53
use rustc_data_structures:: stable_hasher:: { HashStable , hash_stable_hashmap,
54
54
StableHasher , StableHasherResult ,
55
55
StableVec } ;
56
+ use rustc_data_structures;
56
57
use arena:: { TypedArena , DroplessArena } ;
57
58
use rustc_const_math:: { ConstInt , ConstUsize } ;
58
59
use rustc_data_structures:: indexed_vec:: IndexVec ;
59
60
use std:: any:: Any ;
60
61
use std:: borrow:: Borrow ;
61
62
use std:: cell:: { Cell , RefCell } ;
62
63
use std:: cmp:: Ordering ;
63
- use std :: collections :: hash_map :: { self , Entry } ;
64
+ use ordermap :: { self , Entry } ;
64
65
use std:: hash:: { Hash , Hasher } ;
65
66
use std:: mem;
66
67
use std:: ops:: Deref ;
@@ -275,7 +276,7 @@ impl<'a, V> LocalTableInContext<'a, V> {
275
276
self . data . get ( & id. local_id )
276
277
}
277
278
278
- pub fn iter ( & self ) -> hash_map :: Iter < hir:: ItemLocalId , V > {
279
+ pub fn iter ( & self ) -> ordermap :: Iter < hir:: ItemLocalId , V > {
279
280
self . data . iter ( )
280
281
}
281
282
}
@@ -299,7 +300,7 @@ impl<'a, V> LocalTableInContextMut<'a, V> {
299
300
self . data . get_mut ( & id. local_id )
300
301
}
301
302
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 > > {
303
304
validate_hir_id_for_typeck_tables ( self . local_id_root , id, true ) ;
304
305
self . data . entry ( id. local_id )
305
306
}
0 commit comments