@@ -21,22 +21,16 @@ impl<'ctx> rustc_hir::HashStableContext for StableHashingContext<'ctx> {
2121 }
2222
2323 fn hash_hir_expr ( & mut self , expr : & hir:: Expr < ' _ > , hasher : & mut StableHasher ) {
24- self . while_hashing_hir_bodies ( true , |hcx| {
25- let hir:: Expr { hir_id, ref span, ref kind } = * expr;
26-
27- hir_id. hash_stable ( hcx, hasher) ;
28- span. hash_stable ( hcx, hasher) ;
29- kind. hash_stable ( hcx, hasher) ;
30- } )
24+ let hir:: Expr { hir_id, ref span, ref kind } = * expr;
25+ hir_id. hash_stable ( self , hasher) ;
26+ span. hash_stable ( self , hasher) ;
27+ kind. hash_stable ( self , hasher) ;
3128 }
3229
3330 fn hash_hir_ty ( & mut self , ty : & hir:: Ty < ' _ > , hasher : & mut StableHasher ) {
34- self . while_hashing_hir_bodies ( true , |hcx| {
35- let hir:: Ty { hir_id, ref kind, ref span } = * ty;
36-
37- hir_id. hash_stable ( hcx, hasher) ;
38- kind. hash_stable ( hcx, hasher) ;
39- span. hash_stable ( hcx, hasher) ;
40- } )
31+ let hir:: Ty { hir_id, ref kind, ref span } = * ty;
32+ hir_id. hash_stable ( self , hasher) ;
33+ kind. hash_stable ( self , hasher) ;
34+ span. hash_stable ( self , hasher) ;
4135 }
4236}
0 commit comments