-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Try to evalate obligation in fulfillment when we have no inference vars #86748
Conversation
Previously, we required that the predicate be 'global', which also ruled out type parameters. As long as we don't have any inference variables (meaning that that the fulfillment will never need to constrain any inferene variables), we can use the `evaluate_obligation` query.
(rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 121faca with merge 175a9cc1cf3acd27382e67c38be0fd0c341382d3... |
☀️ Try build successful - checks-actions |
Queued 175a9cc1cf3acd27382e67c38be0fd0c341382d3 with parent 5d34076, future comparison URL. |
Finished benchmarking try commit (175a9cc1cf3acd27382e67c38be0fd0c341382d3): comparison url. Summary: This change led to significant mixed results 🤷 in compiler performance.
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. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 74ee70c with merge 0d390589eed781c1e3aa3f8f045bf7f759912646... |
☀️ Try build successful - checks-actions |
Queued 0d390589eed781c1e3aa3f8f045bf7f759912646 with parent 868c702, future comparison URL. |
Finished benchmarking try commit (0d390589eed781c1e3aa3f8f045bf7f759912646): comparison url. Summary: This change led to significant mixed results 🤷 in compiler performance.
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. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@Aaron1011 was this an alternative to #85868? |
This was an attempt at speeding up that PR - by itself, this PR doesn't fix any bugs. However, it appears that this approach actually hurts performance. |
Previously, we required that the predicate be 'global', which also
ruled out type parameters. As long as we don't have any inference
variables (meaning that that the fulfillment will never need to
constrain any inferene variables), we can use the
evaluate_obligation
query.