Add comment on stable_hash_impl for OwnerNodes
This commit is contained in:
parent
009c1d0248
commit
5f7b989275
@ -208,6 +208,9 @@ impl<'tcx, HirCtx: crate::HashStableContext> HashStable<HirCtx> for OwnerNodes<'
|
|||||||
fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher) {
|
fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher) {
|
||||||
// We ignore the `nodes` and `bodies` fields since these refer to information included in
|
// 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.
|
// `hash` which is hashed in the collector and used for the crate hash.
|
||||||
|
// `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 {
|
let OwnerNodes {
|
||||||
hash_including_bodies,
|
hash_including_bodies,
|
||||||
hash_without_bodies: _,
|
hash_without_bodies: _,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user