-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Restrict use of constants in patterns (RFC 1445) #31434
Copy link
Copy link
Closed
Labels
A-patternsRelating to patterns and pattern matchingRelating to patterns and pattern matchingB-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 RFCS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-patternsRelating to patterns and pattern matchingRelating to patterns and pattern matchingB-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 RFCS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Tracking issue for rust-lang/rfcs#1445.
Implementation steps:
#[structural_match]#[derive(Eq)]add#[structural_match]attributeindirect_structural_matchcompatibility lint #62411 .#[structural_match]attribute to something with impl items (e.g. aStructuraltrait)