diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-11-21 19:04:47 +0100 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-01-25 15:05:19 -0300 |
| commit | 80132c3ce496ba1ad6f2ec4fa1f3db34cf8b9f77 (patch) | |
| tree | 3758cbea88db9eee70ccc4662d3ef3c83bfe4252 /compiler/rustc_hir/src/stable_hash_impls.rs | |
| parent | 17dfae79bbc3dabe1427073086acf7f7bd45148c (diff) | |
| download | rust-80132c3ce496ba1ad6f2ec4fa1f3db34cf8b9f77.tar.gz rust-80132c3ce496ba1ad6f2ec4fa1f3db34cf8b9f77.zip | |
Store hir_id_to_def_id in OwnerInfo.
Diffstat (limited to 'compiler/rustc_hir/src/stable_hash_impls.rs')
| -rw-r--r-- | compiler/rustc_hir/src/stable_hash_impls.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/rustc_hir/src/stable_hash_impls.rs b/compiler/rustc_hir/src/stable_hash_impls.rs index a43c1f9d9ae..b15054ae6d6 100644 --- a/compiler/rustc_hir/src/stable_hash_impls.rs +++ b/compiler/rustc_hir/src/stable_hash_impls.rs @@ -208,8 +208,13 @@ impl<'tcx, HirCtx: crate::HashStableContext> HashStable<HirCtx> for OwnerNodes<' fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher) { // We ignore the `nodes` and `bodies` fields since these refer to information included in // `hash` which is hashed in the collector and used for the crate hash. - let OwnerNodes { hash_including_bodies, hash_without_bodies: _, nodes: _, bodies: _ } = - *self; + let OwnerNodes { + hash_including_bodies, + hash_without_bodies: _, + nodes: _, + bodies: _, + local_id_to_def_id: _, + } = *self; hash_including_bodies.hash_stable(hcx, hasher); } } |
