-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Description
Tracking issue for rust-lang/rfcs#1445.
Implementation steps:
- disable pattern expansion for user-defined types unless tagged with
#[structural_match]
- disable pattern matching for floating point constants
- have
#[derive(Eq)]
add#[structural_match]
attribute - exhaustiveness, dead-code integration
- indirect_structural_match lint misfiring on enum variant unused in const item #62614, a bug that led us to rollback on Tracking issue for
indirect_structural_match
compatibility lint #62411 . - "Structural match" annotations should be moved from struct/enum items to impl items #63438: move from
#[structural_match]
attribute to something with impl items (e.g. aStructural
trait)
schneiderfelipe, reo101, carun and rnbguystanislav-tkach and reo101
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