-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Properly deeply normalize in the next solver #136074
base: master
Are you sure you want to change the base?
Properly deeply normalize in the next solver #136074
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…t-solver, r=<try> Properly deeply normalize in the next solver r? lcnr
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (6fc8fbd): comparison URL. Overall result: ❌ regressions - 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 the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -1.1%, secondary -3.4%)This 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.
CyclesResults (primary 2.2%, secondary 2.1%)This 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 771.158s -> 769.467s (-0.22%) |
@@ -2,13 +2,15 @@ | |||
//@ ignore-compare-mode-next-solver (explicit revisions) | |||
//@[next] compile-flags: -Znext-solver | |||
|
|||
//@[next] build-fail | |||
//@[next] known-bug: unknown | |||
//@[next] failure-status: 101 |
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.
why does this ICE now?
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.
Because we now fail to normalize but otherwise do not emit an error message.
This should be fixed by my PR which fixes recursive coroutine detection.
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.
Fixed by #136073, which I've stacked underneath these changes. Blocked on that PR for now, which is waiting on bors.
0eab7b0
to
a5d2c7b
Compare
☔ The latest upstream changes (presumably #136203) made this pull request unmergeable. Please resolve the merge conflicts. |
a5d2c7b
to
6a391c6
Compare
r=me once it's unblocked |
☔ The latest upstream changes (presumably #134824) made this pull request unmergeable. Please resolve the merge conflicts. |
please add a next-solver revision to tests/ui/implied-bounds/normalization.rs |
Turn deep normalization into a
TypeOp
. In the old solver, just dispatch to theNormalize
type op, but in the new solver calldeeply_normalize
. I chose to separate it into a different type op b/c some normalization is a no-op in the new solver, so this distinguishes just the normalization we need for correctness.Then use
DeeplyNormalize
in the callsites we used to be using aCustomTypeOp
(for normalizing known type outlives obligations), and also use it to normalize function args and impl headers in the new solver.Finally, use it to normalize signatures for WF checks in the new solver as well. This addresses rust-lang/trait-system-refactor-initiative#146.