Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRestrict use of constants in patterns (RFC 1445) #31434
Comments
nikomatsakis
added
B-RFC-approved
T-lang
labels
Feb 5, 2016
nikomatsakis
self-assigned this
Feb 5, 2016
This comment has been minimized.
This comment has been minimized.
|
Why |
This comment has been minimized.
This comment has been minimized.
|
See the PR #32199 |
This comment has been minimized.
This comment has been minimized.
The primary reason is that types which only implement If we wind up adopting a "semantic" interpretation, then we could consider loosening to |
bors
added a commit
that referenced
this issue
Mar 25, 2016
bors
added a commit
that referenced
this issue
Mar 25, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Mar 26, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Mar 26, 2016
brson
referenced this issue
Jul 14, 2016
Closed
Any old type of constant can be used in a pattern #20489
brson
added
the
I-nominated
label
Jul 14, 2016
This comment has been minimized.
This comment has been minimized.
|
Nominating for status update. |
brson
removed
the
I-nominated
label
Jul 14, 2016
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis status update? |
This comment has been minimized.
This comment has been minimized.
|
@brson this is basically implemented, except that I don't think I did anything clever for the exhaustiveness check. I updated the check marks. The semantics are still (in my mind) basically a kind of temporary hack. |
This was referenced Oct 1, 2016
Mark-Simulacrum
added
C-tracking-issue
and removed
C-enhancement
C-feature-request
labels
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
|
Triage: @nikomatsakis any movement here? |
nikomatsakis commentedFeb 5, 2016
•
edited
Tracking issue for rust-lang/rfcs#1445.
Implementation steps:
#[structural_match]#[derive(Eq)]add#[structural_match]attribute