From 8a4cbcf2207cc6ee489e1c3fea9e7d8dfeb396d9 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sun, 31 Jul 2022 16:13:25 +0200 Subject: Derive HashStable for HIR Expr and Ty. --- compiler/rustc_query_system/src/ich/impls_hir.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'compiler/rustc_query_system') 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); - } } -- cgit 1.4.1-3-g733a5