Closed
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)
Metadata
Metadata
Assignees
Labels
Relating to patterns and pattern matchingBlocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFCStatus: There are blocking design concerns.Relevant to the language team, which will review and decide on the PR/issue.