about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/ich
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-07-31 16:13:25 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-08-07 17:30:45 +0200
commit8a4cbcf2207cc6ee489e1c3fea9e7d8dfeb396d9 (patch)
treea48f7d42395d4d447e76293669e7996b59b40417 /compiler/rustc_query_system/src/ich
parentb0047c18cbcae77e28d37a5b0a3937914218d908 (diff)
downloadrust-8a4cbcf2207cc6ee489e1c3fea9e7d8dfeb396d9.tar.gz
rust-8a4cbcf2207cc6ee489e1c3fea9e7d8dfeb396d9.zip
Derive HashStable for HIR Expr and Ty.
Diffstat (limited to 'compiler/rustc_query_system/src/ich')
-rw-r--r--compiler/rustc_query_system/src/ich/impls_hir.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_query_system/src/ich/impls_hir.rs b/compiler/rustc_query_system/src/ich/impls_hir.rs
index 6a43487aea8..b717db76578 100644
--- a/compiler/rustc_query_system/src/ich/impls_hir.rs
+++ b/compiler/rustc_query_system/src/ich/impls_hir.rs
@@ -19,18 +19,4 @@ impl<'ctx> rustc_hir::HashStableContext for StableHashingContext<'ctx> {
             }
         }
     }
-
-    fn hash_hir_expr(&mut self, expr: &hir::Expr<'_>, hasher: &mut StableHasher) {
-        let hir::Expr { hir_id, ref span, ref kind } = *expr;
-        hir_id.hash_stable(self, hasher);
-        span.hash_stable(self, hasher);
-        kind.hash_stable(self, hasher);
-    }
-
-    fn hash_hir_ty(&mut self, ty: &hir::Ty<'_>, hasher: &mut StableHasher) {
-        let hir::Ty { hir_id, ref kind, ref span } = *ty;
-        hir_id.hash_stable(self, hasher);
-        kind.hash_stable(self, hasher);
-        span.hash_stable(self, hasher);
-    }
 }