Skip to content

fix: Fix a bug with predicate lowering of associated items #19612

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
Apr 17, 2025

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Apr 16, 2025

The essence of the bug is that bounds on impl Trait got lowered with incorrect bound vars, as if we were lowering the parent.

Another bug from the item tree rewrite. Kind of expected, I think (I don't blame anyone!)

Fixes #19610.

Somewhat ironically, finding & fixing the bug was almost less work than creating a test that fails in the previous version... (and understand the bug deeply, which is needed to create such test).

The essence of the bug is that bounds on `impl Trait` got lowered with incorrect bound vars, as if we were lowering the parent.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 16, 2025
@Veykril Veykril added this pull request to the merge queue Apr 17, 2025
Merged via the queue into rust-lang:master with commit 71d23b9 Apr 17, 2025
14 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the parent-generics branch April 17, 2025 16:24
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic: mismatched kinds in substitution in textDocument/references
3 participants