Skip to content
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

Generate clauses for super traits of opaque bounds #681

Merged
merged 8 commits into from
Feb 17, 2021

Conversation

detrumi
Copy link
Member

@detrumi detrumi commented Jan 31, 2021

Implements #677

Turns out that push_dyn_ty_impl_clauses can also be used for opaque types.

@jackh726
Copy link
Member

jackh726 commented Feb 5, 2021

I keep meaning to get to reviewing this, and have read through it a couple times. But still haven't thought completely about it. I'll try to get to it this weekend.

@detrumi
Copy link
Member Author

detrumi commented Feb 16, 2021

@jackh726 Ping, could you do a quick review? The essence of the change is in the first commit, the rest is just moving some code around to avoid duplicating this code for both opaque types and dyn types.

Copy link
Member

@jackh726 jackh726 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple nits; take them or leave them

r=me either way

chalk-solve/src/clauses/super_traits.rs Outdated Show resolved Hide resolved
chalk-solve/src/clauses/super_traits.rs Outdated Show resolved Hide resolved
chalk-solve/src/clauses/super_traits.rs Outdated Show resolved Hide resolved
@detrumi
Copy link
Member Author

detrumi commented Feb 17, 2021

@bors r=jackh726

@bors
Copy link
Collaborator

bors commented Feb 17, 2021

📌 Commit 29ba9ee has been approved by jackh726

@bors
Copy link
Collaborator

bors commented Feb 17, 2021

⌛ Testing commit 29ba9ee with merge b344839...

@bors
Copy link
Collaborator

bors commented Feb 17, 2021

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

@bors bors merged commit b344839 into rust-lang:master Feb 17, 2021
@detrumi detrumi deleted the opaque-super-bounds branch February 17, 2021 11:59
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