-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Store hir_id_to_def_id in OwnerInfo. #93301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: _, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea! I think that skipping the hash for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😆 this is your code, we just accidentally took it over and I didn't realize at all what was going on. Since we require
for stable hashing, but any info in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not intend to congratulate myself. Sorry for the impoliteness. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops I thought we added the comment. Yea, let's do it in a follow up cc @spastorino |
||
} = *self; | ||
hash_including_bodies.hash_stable(hcx, hasher); | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.