@@ -11,9 +11,7 @@ pub trait HashStableContext: syntax::HashStableContext + rustc_target::HashStabl
11
11
fn hash_def_id ( & mut self , _: DefId , hasher : & mut StableHasher ) ;
12
12
fn hash_hir_id ( & mut self , _: HirId , hasher : & mut StableHasher ) ;
13
13
fn hash_body_id ( & mut self , _: BodyId , hasher : & mut StableHasher ) ;
14
- fn hash_item_id ( & mut self , _: ItemId , hasher : & mut StableHasher ) ;
15
- fn hash_impl_item_id ( & mut self , _: ImplItemId , hasher : & mut StableHasher ) ;
16
- fn hash_trait_item_id ( & mut self , _: TraitItemId , hasher : & mut StableHasher ) ;
14
+ fn hash_reference_to_item ( & mut self , _: HirId , hasher : & mut StableHasher ) ;
17
15
fn hash_hir_mod ( & mut self , _: & Mod < ' _ > , hasher : & mut StableHasher ) ;
18
16
fn hash_hir_expr ( & mut self , _: & Expr < ' _ > , hasher : & mut StableHasher ) ;
19
17
fn hash_hir_ty ( & mut self , _: & Ty < ' _ > , hasher : & mut StableHasher ) ;
@@ -40,19 +38,19 @@ impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for BodyId {
40
38
41
39
impl < HirCtx : crate :: HashStableContext > HashStable < HirCtx > for ItemId {
42
40
fn hash_stable ( & self , hcx : & mut HirCtx , hasher : & mut StableHasher ) {
43
- hcx. hash_item_id ( * self , hasher)
41
+ hcx. hash_reference_to_item ( self . id , hasher)
44
42
}
45
43
}
46
44
47
45
impl < HirCtx : crate :: HashStableContext > HashStable < HirCtx > for ImplItemId {
48
46
fn hash_stable ( & self , hcx : & mut HirCtx , hasher : & mut StableHasher ) {
49
- hcx. hash_impl_item_id ( * self , hasher)
47
+ hcx. hash_reference_to_item ( self . hir_id , hasher)
50
48
}
51
49
}
52
50
53
51
impl < HirCtx : crate :: HashStableContext > HashStable < HirCtx > for TraitItemId {
54
52
fn hash_stable ( & self , hcx : & mut HirCtx , hasher : & mut StableHasher ) {
55
- hcx. hash_trait_item_id ( * self , hasher)
53
+ hcx. hash_reference_to_item ( self . hir_id , hasher)
56
54
}
57
55
}
58
56
0 commit comments