-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Merge E0002 into E0004 #36909
Conversation
"non-exhaustive patterns: type {} is non-empty", | ||
pat_ty); | ||
let mut err = create_e0004(cx.tcx.sess, ex.span, | ||
format!("non-exhaustive patterns: type {} \ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. :-/
Pinging @arielb1 - what did you have in mind for the refactor for E0002 and E0004? |
That kind of thing. |
Then we're all good! :D |
@bors r+ rollup |
📌 Commit cb22364 has been approved by |
…=arielb1 Merge E0002 into E0004 Fixes rust-lang#36724. r? @jonathandturner
E0002 was merged into E0004 in rust-lang#36909, and the long diagnostic for E0004 is sufficient to cover empty match expressions.
Fixes #36724.
r? @jonathandturner