Skip to content

Rename FnKind variants and stop re-exporting them from the visit module. #28007

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
Aug 31, 2015

Conversation

Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Aug 26, 2015

There is no longer a need for that pattern, since enums are now qualified.

There is no longer a need for that pattern, since enums are now qualified.
@rust-highfive
Copy link
Contributor

r? @alexcrichton

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

@Ms2ger Ms2ger changed the title Rename FnKind variants and stop re-rxporting them from the visit module. Rename FnKind variants and stop re-exporting them from the visit module. Aug 26, 2015
@eddyb
Copy link
Member

eddyb commented Aug 26, 2015

Was this submitted before? I think I've seen this change in some older PR.

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Aug 26, 2015

I haven't submitted it before, and didn't find one when looking earlier.

@Manishearth
Copy link
Member

I actually did it here and then undid it after some discussion

@Manishearth
Copy link
Member

We have prefixes for the rest of the AST types (eg TyFoo, ItemFoo, PatFoo), so a Fk prefix here sounds okay.

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Aug 26, 2015

We should fix the rest too, but that was more than I felt like today.

@Manishearth
Copy link
Member

Hmm, that sounds okay.

I prefer TyFoo over Ty::Foo but not that much.

@alexcrichton
Copy link
Member

r? @nrc

cc @rust-lang/compiler

@rust-highfive rust-highfive assigned nrc and unassigned alexcrichton Aug 26, 2015
@eddyb
Copy link
Member

eddyb commented Aug 26, 2015

👍 from me - the EnumVariant naming is a historic artifact, I much prefer Enum::Variant.
Sadly, before we get extensible enums with common fields, Expr_::Path will look worse than ExprPath, so we can't just change over the entire AST now.

@nrc
Copy link
Member

nrc commented Aug 30, 2015

@bors: r+

@bors
Copy link
Collaborator

bors commented Aug 30, 2015

📌 Commit 2076cdd has been approved by nrc

@bors
Copy link
Collaborator

bors commented Aug 31, 2015

⌛ Testing commit 2076cdd with merge 8f28c9b...

bors added a commit that referenced this pull request Aug 31, 2015
There is no longer a need for that pattern, since enums are now qualified.
@bors bors merged commit 2076cdd into rust-lang:master Aug 31, 2015
@Ms2ger Ms2ger deleted the FnKind branch August 31, 2015 07:26
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.

7 participants