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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Relating to patterns and pattern matchingRelating to patterns and pattern matchingBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.Category: A tracking issue for an RFC or an unstable feature.Category: A tracking issue for an RFC or an unstable feature.Status: There are blocking ❌ design concerns.Status: There are blocking ❌ design concerns.Relevant to the language team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.