diff options
| author | Aman Arora <me@aman-arora.com> | 2021-03-19 00:39:39 -0400 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2021-03-19 00:39:39 -0400 |
| commit | 88db752e570f8fb57526cb13009da84a96aa11c6 (patch) | |
| tree | 9ccb7c301dc68a76a084085693996bc9ca7d0346 | |
| parent | 52dba13e410f4f15390c83c13cb887d3f5b7b3e7 (diff) | |
| download | rust-88db752e570f8fb57526cb13009da84a96aa11c6.tar.gz rust-88db752e570f8fb57526cb13009da84a96aa11c6.zip | |
Hash hir_owner in typeck results
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 88f26325bd3..41a8bc10c8d 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -705,7 +705,7 @@ impl<'tcx> TypeckResults<'tcx> { impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckResults<'tcx> { fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) { let ty::TypeckResults { - hir_owner: _, + hir_owner, ref type_dependent_defs, ref field_indices, ref user_provided_types, @@ -729,6 +729,8 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckResults<'tcx> { } = *self; hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| { + hcx.local_def_path_hash(hir_owner); + type_dependent_defs.hash_stable(hcx, hasher); field_indices.hash_stable(hcx, hasher); user_provided_types.hash_stable(hcx, hasher); |
