Skip to content
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

Fix ICE / LLVM error with tuple struct matches using (..) #14313

Merged
merged 3 commits into from
May 23, 2014

Conversation

lilyball
Copy link
Contributor

Fixes #14308.

Enum wildcard patterns in match behave wrong when applied to tuple
structs. They either ICE or cause an LLVM error.
Consider PatEnums constructed with A(..) to be candidates for tuple
struct patterns, not just ones constructed with A(a,b,c). If these
patterns shouldn't be valid tuple struct patterns (as they're equivalent
to _), this needs to be caught before we get to trans.

Fixes rust-lang#14308.
bors added a commit that referenced this pull request May 23, 2014
@bors bors closed this May 23, 2014
@bors bors merged commit 0718259 into rust-lang:master May 23, 2014
@lilyball lilyball deleted the tuple_dotdot_match_ice branch May 23, 2014 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE / LLVM ERROR with tuple structure match
3 participants