Revert "Cache whether a body has inline consts"

This reverts commit eae5031ecb.
This commit is contained in:
Oli Scherer
2024-06-03 08:38:40 +00:00
parent b74702fbb2
commit 92c54db22f
6 changed files with 4 additions and 22 deletions

View File

@@ -93,8 +93,7 @@ impl<'tcx, HirCtx: crate::HashStableContext> HashStable<HirCtx> for OwnerNodes<'
// `local_id_to_def_id` is also ignored because is dependent on the body, then just hashing
// the body satisfies the condition of two nodes being different have different
// `hash_stable` results.
let OwnerNodes { opt_hash_including_bodies, nodes: _, bodies: _, has_inline_consts: _ } =
*self;
let OwnerNodes { opt_hash_including_bodies, nodes: _, bodies: _ } = *self;
opt_hash_including_bodies.unwrap().hash_stable(hcx, hasher);
}
}