Skip to content

Fix ICE in memory categorization of tuple patterns #34336

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

Merged
merged 1 commit into from
Jun 18, 2016

Conversation

petrochenkov
Copy link
Contributor

Fixes #34334

It seems to be ok for pat_ty to return Err even if type checking is done, because it uses infcx.node_ty which is supposed to return Err for all kinds of erroneous types so its callers could quickly bail out with ?.

r? @arielb1

@arielb1
Copy link
Contributor

arielb1 commented Jun 18, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 18, 2016

📌 Commit 8c0fef8 has been approved by arielb1

@bors
Copy link
Collaborator

bors commented Jun 18, 2016

⌛ Testing commit 8c0fef8 with merge f4d03da...

bors added a commit that referenced this pull request Jun 18, 2016
Fix ICE in memory categorization of tuple patterns

Fixes #34334

It seems to be ok for `pat_ty` to return `Err` even if type checking is done, because it uses `infcx.node_ty` which is supposed to return `Err` for all kinds of erroneous types so its callers could quickly bail out with `?`.

r? @arielb1
@bors bors merged commit 8c0fef8 into rust-lang:master Jun 18, 2016
@petrochenkov petrochenkov deleted the icemctuple branch September 21, 2016 19:58
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.

3 participants