-
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
Normalize opaques before defining them in the new solver #116369
Closed
compiler-errors
wants to merge
1
commit into
rust-lang:master
from
compiler-errors:new-solver-opaques
Closed
Normalize opaques before defining them in the new solver #116369
compiler-errors
wants to merge
1
commit into
rust-lang:master
from
compiler-errors:new-solver-opaques
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustbot
added
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-trait-system-refactor
The Rustc Trait System Refactor Initiative (-Znext-solver)
labels
Oct 3, 2023
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
yotamofek
reviewed
Oct 3, 2023
rust-cloud-vms
bot
force-pushed
the
new-solver-opaques
branch
from
October 3, 2023 03:43
e4952af
to
7cf15d6
Compare
This comment has been minimized.
This comment has been minimized.
rust-cloud-vms
bot
force-pushed
the
new-solver-opaques
branch
from
October 3, 2023 04:02
7cf15d6
to
0fa553a
Compare
☔ The latest upstream changes (presumably #116598) made this pull request unmergeable. Please resolve the merge conflicts. |
rust-cloud-vms
bot
force-pushed
the
new-solver-opaques
branch
from
October 17, 2023 22:45
0fa553a
to
02aefd4
Compare
☔ The latest upstream changes (presumably #116958) made this pull request unmergeable. Please resolve the merge conflicts. |
Closing in favor of @lcnr's approach. |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Nov 17, 2023
…rors new solver normalization improvements cool beans At the core of this PR is a `try_normalize_ty` which stops for rigid aliases by using `commit_if_ok`. Reworks alias-relate to fully normalize both the lhs and rhs and then equate the resulting rigid (or inference) types. This fixes rust-lang/trait-system-refactor-initiative#68 by avoiding the exponential blowup. Also supersedes rust-lang#116369 by only defining opaque types if the hidden type is rigid. I removed the stability check in `EvalCtxt::evaluate_goal` due to rust-lang/trait-system-refactor-initiative#75. While I personally have opinions on how to fix it, that still requires further t-types/`@nikomatsakis` buy-in, so I removed that for now. Once we've decided on our approach there, we can revert this commit. r? `@compiler-errors`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-trait-system-refactor
The Rustc Trait System Refactor Initiative (-Znext-solver)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We normalize the hidden type of an opaque before defining it to ensure that we don't:
Tests are a combination of things that went from ICE -> (expected) fail, and fail -> pass.
r? lcnr