Skip to content

privacy: Account for associated existential types - #57649

Merged
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:privexist
Jan 19, 2019
Merged

privacy: Account for associated existential types#57649
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:privexist

Conversation

@petrochenkov

Copy link
Copy Markdown
Contributor

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

r? @arielb1

@arielb1

arielb1 commented Jan 17, 2019

Copy link
Copy Markdown
Contributor

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

Comment threadsrc/librustc_privacy/lib.rs Outdated
Comment threadsrc/librustc_privacy/lib.rs Outdated
@arielb1

Copy link
Copy Markdown
Contributor

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

@petrochenkov

Copy link
Copy Markdown
ContributorAuthor

Exhaustive matches are added and factored into a separate function.

@bors r=arielb1

@bors

bors commented Jan 17, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit d34b3e9 has been approved by arielb1

@borsbors 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).
Fixesrust-lang#53546 (comment)
r? @arielb1
@CentrilCentril mentioned this pull request Jan 18, 2019
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).
Fixesrust-lang#53546 (comment)
r? @arielb1
@CentrilCentril mentioned this pull request Jan 19, 2019
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:masterJan 19, 2019
@petrochenkov
petrochenkov deleted the privexist branch June 5, 2019 16:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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

@petrochenkov@arielb1@bors@rust-highfive