-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rename ImplItem_::*ImplItem to ImplItem_::* #29766
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
cc @rust-lang/compiler, thoughts about naming here? |
I was pondering doing a different kind of rename, |
I approve - I think we should make more use of namespaced enums like this. I also agree with eddyb that it would be nice not to have |
The common enum fields part of ADT hierarchies would indeed solve this long-standing problem quite elegantly, but I'm not sure what the timeline for those is. |
I've been wanting to do something like this, but I am not a big fan of the |
r? @eddyb (moving to random compilers team member) |
So, I'm going to take a stand and say that I do not want to type |
addressed the comments and also did the renaming for |
☔ The latest upstream changes (presumably #29387) made this pull request unmergeable. Please resolve the merge conflicts. |
rebased |
📌 Commit d09220d has been approved by |
[breaking change] I'm not sure if those renames are ok. [TokenType::Tt* to TokenType::*](#29582) was obvious, but for all those Item-enums it's less obvious to me what the right way forward is due to the underscore.
[breaking change]
I'm not sure if those renames are ok. TokenType::Tt* to TokenType::* was obvious, but for all those Item-enums it's less obvious to me what the right way forward is due to the underscore.