Skip to content

Commit 88db752

Browse files
committed
Hash hir_owner in typeck results
1 parent 52dba13 commit 88db752

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_middle/src/ty/context.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl<'tcx> TypeckResults<'tcx> {
705705
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckResults<'tcx> {
706706
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
707707
let ty::TypeckResults {
708-
hir_owner: _,
708+
hir_owner,
709709
ref type_dependent_defs,
710710
ref field_indices,
711711
ref user_provided_types,
@@ -729,6 +729,8 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckResults<'tcx> {
729729
} = *self;
730730

731731
hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
732+
hcx.local_def_path_hash(hir_owner);
733+
732734
type_dependent_defs.hash_stable(hcx, hasher);
733735
field_indices.hash_stable(hcx, hasher);
734736
user_provided_types.hash_stable(hcx, hasher);

0 commit comments

Comments
 (0)