-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Bubble opaque types into aggregates to produce more precise diagnostics on aggregate constructors #95773
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
Conversation
…n instead of within the `type_of` query. This allows us to only store a single hidden type per opaque type instead of having to store one per set of substitutions.
…cs on aggregate constructors
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit cd61e54 with merge fc08ecd2fd1c5224b9078bcff2152d19e82525b2... |
The diagnostic improvements in these UI tests here are great! ✨ |
☀️ Try build successful - checks-actions |
Queued fc08ecd2fd1c5224b9078bcff2152d19e82525b2 with parent fa72316, future comparison URL. |
I just realized that deaggregating before borrowck gives us an even better solution without having to make mir building more complex. I guess i'll start looking into that again xD |
Finished benchmarking commit (fc08ecd2fd1c5224b9078bcff2152d19e82525b2): 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 |
Closing this PR, as it's definitely not my preferred route to go about this |
Follow up to #95767
This may be a bit overkill, but I'm exploring multiple paths to get the same better diagnostics
r? @ghost