Skip to content

fix: normalize projection after discarding free BoundVars in RPIT #13750

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
Dec 10, 2022

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Dec 9, 2022

Fixes #13307

When we lower the return type of a function, it may contain free BoundVars in OpaqueType's substitution, which would cause panic during canonicalization as part of projection normalization. Those BoundVars are irrelevant in this context and will be discarded, and we should defer projection normalization until then.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 9, 2022
@flodiebold
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Dec 10, 2022

📌 Commit 34b11d9 has been approved by flodiebold

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Dec 10, 2022

⌛ Testing commit 34b11d9 with merge 632f804...

@bors
Copy link
Contributor

bors commented Dec 10, 2022

☀️ Test successful - checks-actions
Approved by: flodiebold
Pushing 632f804 to master...

@bors bors merged commit 632f804 into rust-lang:master Dec 10, 2022
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 when analyzing impl Trait used in projection
4 participants