-
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
(almost) Always use ObligationCtxt
when dealing with canonical queries
#103590
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 0bd6683576648fb55e3e0f2922a0c837feb5063b with merge bccb473edab682d162577ee3f8421ab566842732... |
☀️ Try build successful - checks-actions |
Queued bccb473edab682d162577ee3f8421ab566842732 with parent 0a6b941, future comparison URL. |
Finished benchmarking commit (bccb473edab682d162577ee3f8421ab566842732): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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 may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
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.
❤️
further improvements, then r=me
let Normalized { value, obligations } = | ||
infcx.at(&ObligationCause::dummy(), param_env).normalize(value)?; | ||
fulfill_cx.register_predicate_obligations(infcx, obligations); | ||
ocx.infcx.at(&ObligationCause::dummy(), param_env).normalize(value)?; | ||
ocx.register_obligations(obligations); |
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.
ocx.normalize
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.
ocx.normalize has different semantics than infcx.normalize though -- it doesn't return an error when it failed to normalize.
614895e
to
2f9794b
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e70cbef): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
This might just be noise, but I'm not certain. Either way, it's just one of the secondary benchmarks, so a regression wouldn't matter much. @rustbot label: +perf-regression-triaged |
(almost) Always use `ObligationCtxt` when dealing with canonical queries Hope this is a step in the right direction. cc rust-lang/types-team#50. r? `@lcnr`
Hope this is a step in the right direction. cc rust-lang/types-team#50.
r? @lcnr