Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tracking issue for RFC 2102, "Unnamed fields of struct and union type" #49804

Copy link
Copy link
@Centril

Description

@Centril
Issue body actions

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

skull-squadron, chris-addison, bkrypt, Trayani, msdinit and 17 moreShidoengie and Veykril

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.F-unnamed_fields`#![feature(unnamed_fields)]``#![feature(unnamed_fields)]`S-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-langRelevant to the language teamRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.