-
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
Remove NodeIdHashingMode. #95656
Remove NodeIdHashingMode. #95656
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit a76ccee8dd1a7d0d5ab2cfbae99e67e8113e51b3 with merge dcf75be0c15ea1a13be81f9df9ed7d549507a771... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
Queued dcf75be0c15ea1a13be81f9df9ed7d549507a771 with parent 6a9080b, future comparison URL. |
Finished benchmarking commit (dcf75be0c15ea1a13be81f9df9ed7d549507a771): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes |
r? @Aaron1011 |
I would love to be able to get rid of all of these manual impls, as well as a configuration knob. I assume that |
As far as I remember, this was intended as an optimization to avoid redundant hashing, yes. I love how big of a simplification this is! How does it fix #95945? |
@michaelwoerister That bug is caused by some of the manual impls hashing |
The PR removes the manual HashStable impl that Aaron suspects causes the bug. I don't have tested it yet. |
a76ccee
to
0927a35
Compare
@bors r+ |
📌 Commit 0927a35 has been approved by |
root_body.hash_stable(hcx, hasher) | ||
}); | ||
|
||
root_body.hash_stable(hcx, hasher); |
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.
I think this manual impl could be replaced by a derive entirely, right?
map.hash_stable(hcx, hasher); | ||
}); | ||
let AccessLevels { ref map } = *self; | ||
map.hash_stable(hcx, hasher); |
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.
I think this manual impl could be replaced by a derive entirely, right?
I've tested the latest |
This PR is expected to cause a small but noticeable performance regression. This is unfortunate, but it the PR is one step towards removing footguns from the incr. comp. system, so I'm going to mark it as triaged: @rustbot label: +perf-regression-triaged |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f38c5c8): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Footnotes |
Nominating for beta-backport since this fixes a reported incremental compilation ICE. |
…ulacrum [beta] backports rollup * Remove NodeIdHashingMode. rust-lang#95656 * Check that all hidden types are the same and then deduplicate them. rust-lang#95731 r? `@Mark-Simulacrum`
r? @ghost