diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2024-01-16 23:23:31 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2024-01-16 23:52:30 +0000 |
| commit | d59968b5f65c8b703f66913181d30d31df113d70 (patch) | |
| tree | 4c9c235d38347d0f0c5c1cb8058c62da249569cb /compiler/rustc_hir/src/stable_hash_impls.rs | |
| parent | 20a8a23cb33fbc59fe89d64fa5dd51ccf33df415 (diff) | |
| download | rust-d59968b5f65c8b703f66913181d30d31df113d70.tar.gz rust-d59968b5f65c8b703f66913181d30d31df113d70.zip | |
Simplify BodyId hashing.
Diffstat (limited to 'compiler/rustc_hir/src/stable_hash_impls.rs')
| -rw-r--r-- | compiler/rustc_hir/src/stable_hash_impls.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_hir/src/stable_hash_impls.rs b/compiler/rustc_hir/src/stable_hash_impls.rs index 97fa710b354..baa1635f731 100644 --- a/compiler/rustc_hir/src/stable_hash_impls.rs +++ b/compiler/rustc_hir/src/stable_hash_impls.rs @@ -12,7 +12,6 @@ use rustc_span::def_id::DefPathHash; pub trait HashStableContext: rustc_ast::HashStableContext + rustc_target::HashStableContext { - fn hash_body_id(&mut self, _: BodyId, hasher: &mut StableHasher); } impl<HirCtx: crate::HashStableContext> ToStableHashKey<HirCtx> for HirId { @@ -80,12 +79,6 @@ impl<HirCtx: crate::HashStableContext> ToStableHashKey<HirCtx> for ForeignItemId } } -impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for BodyId { - fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher) { - hcx.hash_body_id(*self, hasher) - } -} - // The following implementations of HashStable for `ItemId`, `TraitItemId`, and // `ImplItemId` deserve special attention. Normally we do not hash `NodeId`s within // the HIR, since they just signify a HIR nodes own path. But `ItemId` et al |
