Skip to content

fix: generalize types before generating built-in Normalize clauses #797

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
Jun 24, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Jun 23, 2023

When we generate built-in Normalize clauses, self_ty in the original goal may contain bound variables that prevent us from using it as-is. We need to universally quantify over the bound variables before passing it to trait-specific clause generators, which we've been failing to do for DiscriminantKind.

cc rust-lang/rust-analyzer#15113

@compiler-errors
Copy link
Member

ha, I knew that we needed to generalize DiscriminantKind too. I think I pointed that out in some other PR 🤔

@bors r+

@bors
Copy link
Contributor

bors commented Jun 24, 2023

📌 Commit b1c01a8 has been approved by compiler-errors

It is now in the queue for this repository.

@lowr
Copy link
Contributor Author

lowr commented Jun 24, 2023

#794 (comment) 😅

@bors
Copy link
Contributor

bors commented Jun 24, 2023

⌛ Testing commit b1c01a8 with merge 7c8c3d2...

@bors
Copy link
Contributor

bors commented Jun 24, 2023

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 7c8c3d2 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Jun 24, 2023

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 7c8c3d2 to master...

@bors bors merged commit 7c8c3d2 into rust-lang:master Jun 24, 2023
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