-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot pattern match #66
Comments
Implementing identity through the derived form would fix this, but it's a decision we have so far deferred. I've opened up #67 to come to a conclusion. If the outcome is "commit to mask-before", we can make the identity the structural one, and thus enable matching. |
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
Feb 23, 2024
The derived implementations work now that the interior value is always fully masked[1]. As a side effect, this makes consts eligible for pattern matching. [1]: rust-ux#65 Close: rust-ux#66
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
Feb 23, 2024
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
Apr 11, 2024
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
Apr 11, 2024
The derived implementations work now that the interior value is always fully masked[1]. As a side effect, this makes consts eligible for pattern matching. [1]: rust-ux#65 Closes: rust-ux#66
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
Apr 11, 2024
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
May 30, 2024
The derived implementations work now that the interior value is always fully masked[1]. As a side effect, this makes consts eligible for pattern matching. [1]: rust-ux#65 Closes: rust-ux#66
chrysn
added a commit
to chrysn-pull-requests/uX
that referenced
this issue
May 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consts of these types cannot be used in patterns.
The text was updated successfully, but these errors were encountered: