-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add UnnamedField
type and refactor FieldDef
to allow unnamed fields
#84415
Conversation
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @estebank (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. Due to 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. |
UnnamedField
type and refactor FieldDef
to allow unnamed fields (#49804)UnnamedField
type and refactor FieldDef
to allow unnamed fields
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c0a9e53
to
07b13c8
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
☔ The latest upstream changes (presumably #84525) made this pull request unmergeable. Please resolve the merge conflicts. |
I don't think this is a good implementation direction in general. So a preferred solution (compatible with macros, and also current treatment of other syntaxes with similar "limited contexts" like
|
I think you're right, maybe I was overengineering the implementation a little bit too much. Should I close this PR and open another one with the new implementation? |
You can make a new PR, or reuse this PR, whatever is more convenient. |
Made a new implementation prototype based on @petrochenkov 's advice, so closing this PR. |
Additionally added the
unnamed_fields
feature gate.Covers the Parsing section of the RFC 2102. Hopefully this can allow a full implementation of the feature.