This is a tracking issue for the RFC "Unnamed fields of struct and union type" (rust-lang/rfcs#2102).
The feature gate for the issue is #![feature(unnamed_fields)].
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
Unresolved questions
- The RFC was accepted ages ago, and implementation turned out a lot harder than what was likely anticipated. As written, the RFC adds a fundamentally new "kind of type" to the language that's a hybrid of a struct and a union, with non-trivial consequences across many parts of the compiler (and the language, e.g. for macros accessing all fields of a type). Also see the discussion here, these meeting notes, and this comment.
Implementation history
This is a tracking issue for the RFC "Unnamed fields of struct and union type" (rust-lang/rfcs#2102).
The feature gate for the issue is
#![feature(unnamed_fields)].About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
Unresolved questions
Implementation history
unnamed_fieldsduring HIR analysis #121198unnamed_fieldsfeature for now #131045