-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Tracking Issue for deriving Default on enums #86985
Copy link
Copy link
Closed
Labels
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 RFCT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
Description
Activity
Metadata
Metadata
Assignees
Labels
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 RFCT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
This is a tracking issue for the RFC 3107.
The feature gate for the issue is
#![feature(derive_default_enum)].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
#[derive(Default)]on enums with a#[default]attribute #86735Unresolved Questions
#[default]attributes on the same variant be denied?Implementation history
Initial implementation in #86735, which includes the feature gate and necessary errors.