Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
flodiebold:opaque-trait-parameters
Nov 23, 2020
Merged

Fix handling of variables in goal for new alias clauses#656
bors merged 1 commit into
rust-lang:masterfrom
flodiebold:opaque-trait-parameters

Conversation

@flodiebold

@flodieboldflodiebold commented Nov 20, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 23, 2020

Copy link
Copy Markdown
Contributor

📌 Commit 3b10bb1 has been approved by jackh726

@bors

bors commented Nov 23, 2020

Copy link
Copy Markdown
Contributor

⌛ Testing commit 3b10bb1 with merge c3b4349...

@bors

bors commented Nov 23, 2020

Copy link
Copy Markdown
Contributor

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

@bors
bors merged commit c3b4349 into rust-lang:masterNov 23, 2020
borsBot 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 <florian.diebold@freiheit.com>
Sign up for freeto 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

@flodiebold@jackh726@bors