@@ -11,9 +11,7 @@ pub trait HashStableContext: syntax::HashStableContext + rustc_target::HashStabl
1111 fn hash_def_id ( & mut self , _: DefId , hasher : & mut StableHasher ) ;
1212 fn hash_hir_id ( & mut self , _: HirId , hasher : & mut StableHasher ) ;
1313 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 ) ;
1715 fn hash_hir_mod ( & mut self , _: & Mod < ' _ > , hasher : & mut StableHasher ) ;
1816 fn hash_hir_expr ( & mut self , _: & Expr < ' _ > , hasher : & mut StableHasher ) ;
1917 fn hash_hir_ty ( & mut self , _: & Ty < ' _ > , hasher : & mut StableHasher ) ;
@@ -40,19 +38,19 @@ impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for BodyId {
4038
4139impl < HirCtx : crate :: HashStableContext > HashStable < HirCtx > for ItemId {
4240 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)
4442 }
4543}
4644
4745impl < HirCtx : crate :: HashStableContext > HashStable < HirCtx > for ImplItemId {
4846 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)
5048 }
5149}
5250
5351impl < HirCtx : crate :: HashStableContext > HashStable < HirCtx > for TraitItemId {
5452 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)
5654 }
5755}
5856
0 commit comments