Skip to content

privacy: Account for associated existential types #57649

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 19, 2019

Conversation

petrochenkov
Copy link
Contributor

Turns out they can be associated (but only in impls, not traits).
Fixes #53546 (comment)

r? @arielb1

@arielb1
Copy link
Contributor

arielb1 commented Jan 17, 2019

I hate this kind of patchwork! I suppose that's what happens when I have no idea on how existential types work.

@arielb1
Copy link
Contributor

arielb1 commented Jan 17, 2019

r=me with using exhaustive matches, which should catch any sillinesss that might happen if someone refactors these enums.

@petrochenkov
Copy link
Contributor Author

Exhaustive matches are added and factored into a separate function.

@bors r=arielb1

@bors
Copy link
Collaborator

bors commented Jan 17, 2019

📌 Commit d34b3e9 has been approved by arielb1

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 17, 2019
Centril added a commit to Centril/rust that referenced this pull request Jan 18, 2019
privacy: Account for associated existential types

Turns out they *can* be associated (but only in impls, not traits).
Fixes rust-lang#53546 (comment)

r? @arielb1
Centril added a commit to Centril/rust that referenced this pull request Jan 19, 2019
privacy: Account for associated existential types

Turns out they *can* be associated (but only in impls, not traits).
Fixes rust-lang#53546 (comment)

r? @arielb1
bors added a commit that referenced this pull request Jan 19, 2019
Rollup of 7 pull requests

Successful merges:

 - #57486 (Simplify `TokenStream` some more)
 - #57502 (make trait-aliases work across crates)
 - #57598 (Add missing unpretty option help message)
 - #57649 (privacy: Account for associated existential types)
 - #57659 (Fix release manifest generation)
 - #57699 (add applicability to remaining suggestions)
 - #57719 (Tweak `expand_node`)

Failed merges:

r? @ghost
@bors bors merged commit d34b3e9 into rust-lang:master Jan 19, 2019
@petrochenkov petrochenkov deleted the privexist branch June 5, 2019 16:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants