Skip to content

Impl Eq/PartialEq on FnKind, improve docs #27857

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 2 commits into from
Aug 24, 2015

Conversation

Manishearth
Copy link
Member

Since enums are namespaced now, should we also remove the Fk prefixes from FnKind and remove the reexport? (The reexport must be removed because otherwise it clashes with glob imports containing ItemFn). IMO writing FnKind::Method is much clearer than FkMethod.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@marcusklaas
Copy link
Contributor

Nice! Could something similar be done for the Expr_ enum?

@Manishearth
Copy link
Member Author

Expr_ already implements Eq?

As for the naming, I think ExprFoo is better there because the whole AST is glob-exported and imported everywhere.

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 24, 2015

📌 Commit c03bf18 has been approved by pnkfelix

@bors
Copy link
Collaborator

bors commented Aug 24, 2015

⌛ Testing commit c03bf18 with merge 797d0ba...

bors added a commit that referenced this pull request Aug 24, 2015
Since enums are namespaced now, should we also remove the `Fk` prefixes from `FnKind` and remove the reexport? (The reexport must be removed because otherwise it clashes with glob imports containing `ItemFn`). IMO writing `FnKind::Method` is much clearer than `FkMethod`.
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.

5 participants