Skip to content

Fix handling of variables in goal for new alias clauses #656

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

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

flodiebold
Copy link
Member

@flodiebold flodiebold commented Nov 20, 2020

The new clauses for alias types (<X as Y>::Z: Trait :- T: Trait, <X as Y>::Z == T etc.) were generated using the provided goal, without regard for bound variables. This led to e.g. the new test failing in the recursive solver. Alternatively, it might be better to generate the clauses without using the specific types in the goal.

(CC #568.)

The new clauses for alias types (`<X as Y>::Z: Trait :- T: Trait, <X as Y>::Z ==
T` etc.) were generated using the provided goal, without regard for bound
variables. This led to e.g. the new test failing in the recursive solver.
Alternatively, it might be better to generate the clauses without using the
specific types in the goal.
@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Nov 23, 2020

📌 Commit 3b10bb1 has been approved by jackh726

@bors
Copy link
Contributor

bors commented Nov 23, 2020

⌛ Testing commit 3b10bb1 with merge c3b4349...

@bors
Copy link
Contributor

bors commented Nov 23, 2020

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing c3b4349 to master...

@bors bors merged commit c3b4349 into rust-lang:master Nov 23, 2020
bors bot added a commit to rust-lang/rust-analyzer that referenced this pull request Dec 7, 2020
6597: Upgrade Chalk r=flodiebold a=flodiebold

Also make overflow depth and max type size configurable through env variables. This can be helpful at least for debugging.

Tests currently fail because of rust-lang/chalk#656, so we'll need to wait for the next update to merge this.

Co-authored-by: Florian Diebold <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants