-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Handle path prefix mapping in a more stable way when computing the crate hash #48162
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me w/ clarifications
src/librustc/hir/map/collector.rs
Outdated
@@ -147,11 +149,25 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> { | |||
(name1, dis1).cmp(&(name2, dis2)) | |||
}); | |||
|
|||
// We hash the names of all local source files so we don't have to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I find this comment a bit unclear. What exactly are we hashing here? Are these the "post-remapping" names being hashed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, yes. I'll update the comment.
7a1b1ba
to
0397fc1
Compare
@bors r=nikomatsakis |
📌 Commit 0397fc1 has been approved by |
@bors rollup |
…omatsakis Handle path prefix mapping in a more stable way when computing the crate hash This hopefully fixes issue rust-lang#48019. cc @luser @infinity0
This hopefully fixes issue #48019.
cc @luser @infinity0