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 diagnostics for unresolved patterns #33046

Merged
merged 1 commit into from
Apr 17, 2016

Conversation

jseyfried
Copy link
Contributor

This fixes #33043, a bug in the diagnostics for unresolved patterns.
r? @eddyb

@eddyb
Copy link
Member

eddyb commented Apr 17, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Apr 17, 2016

📌 Commit 1a374b8 has been approved by eddyb

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 17, 2016
…agnostics, r=eddyb

Fix diagnostics for unresolved patterns

This fixes rust-lang#33043, a bug in the diagnostics for unresolved patterns.
r? @eddyb
bors added a commit that referenced this pull request Apr 17, 2016
Rollup of 10 pull requests

- Successful merges: #31441, #32956, #33003, #33022, #33023, #33032, #33039, #33044, #33045, #33046
- Failed merges:
@bors bors merged commit 1a374b8 into rust-lang:master Apr 17, 2016
dsprenkels added a commit to dsprenkels/rust that referenced this pull request May 30, 2016
…h` returns `Err(true)`

In 1a374b8, (pr rust-lang#33046) fixed the error reporting of a specific
case, but the change that was introduced did not make sure that
`record_def` was called in all cases, which lead to an ICE in [1].
This change restores the original `else` case, but keeps the changes
that were committed in 1a374b8.

This commit fixes issue rust-lang#33293.

[1] `rustc::middle::mem_categorization::MemCategorizationContext::cat_pattern_`
Manishearth added a commit to Manishearth/rust that referenced this pull request Jun 1, 2016
…, r=petrochenkov

resolve: record pattern def when `resolve_pattern` returns `Err(true)`

I propose a fix for issue rust-lang#33293.

In 1a374b8, (pr rust-lang#33046) fixed the error reporting of a specific case, but the change that was introduced did not make sure that `record_def` was called in all cases, which lead to an ICE in [1].
This change restores the original `else` case, but keeps the changes that were committed in 1a374b8.

[1] `rustc::middle::mem_categorization::MemCategorizationContext::cat_pattern_`
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.

resolve: bad diagnostics for unresolved enum in pattern
3 participants