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

Merge E0002 into E0004 #36909

Merged
merged 1 commit into from
Oct 6, 2016
Merged

Conversation

GuillaumeGomez
Copy link
Member

"non-exhaustive patterns: type {} is non-empty",
pat_ty);
let mut err = create_e0004(cx.tcx.sess, ex.span,
format!("non-exhaustive patterns: type {} \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So now instead of having just two error codes we do allocations instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you see another solution, I'm totally looking forward to it. :-/

@sophiajt
Copy link
Contributor

sophiajt commented Oct 3, 2016

Pinging @arielb1 - what did you have in mind for the refactor for E0002 and E0004?

@arielb1
Copy link
Contributor

arielb1 commented Oct 3, 2016

That kind of thing.

@GuillaumeGomez
Copy link
Member Author

Then we're all good! :D

@arielb1
Copy link
Contributor

arielb1 commented Oct 4, 2016

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Oct 4, 2016

📌 Commit cb22364 has been approved by arielb1

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Oct 6, 2016
bors added a commit that referenced this pull request Oct 6, 2016
@bors bors merged commit cb22364 into rust-lang:master Oct 6, 2016
@GuillaumeGomez GuillaumeGomez deleted the merge_e0002_e0004 branch October 7, 2016 09:32
jfirebaugh added a commit to jfirebaugh/rust that referenced this pull request Oct 9, 2016
E0002 was merged into E0004 in rust-lang#36909, and the long diagnostic for E0004 is sufficient to cover empty match expressions.
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.

5 participants