-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE in nightly with patterns and nested enums #39362
Comments
This no longer ICEs. E-needstest. |
Have created a test for this - https://is.gd/8rwE7u but tidy is failing for the ERROR check. //~^ ERROR non-exhaustive patterns: `Bar { bar: C, .. }`, `Bar { bar: D, .. }`, `Bar { bar: E, .. }` and 1 more not covered as //~^ ERROR non-exhaustive patterns
//~| `Bar { bar: C, .. }`, `Bar { bar: D, .. }`, `Bar { bar: E, .. }` and 1 more not covered Edit: Even splitting into two lines, it is exactly at width 100. |
You can cut it short at non-exhaustive patterns; we check for substring not exact match. |
How is this different compared to #42217 (comment)? |
That one needs both since the original error is reported on two lines, IIRC; here, it's a single line with no additional information (other than the span) from what I can tell. |
Hm, yeah, you might need two lines here too, actually, now that I look at it. Sorry for the confusion; something like the following should work for this issue (similar to how to format the other issue).
|
…=Mark-Simulacrum regression tests for ICEs closes rust-lang#36379 closes rust-lang#37550 closes rust-lang#37665 closes rust-lang#38160 closes rust-lang#38954 closes rust-lang#39362 r? @Mark-Simulacrum
…=Mark-Simulacrum regression tests for ICEs closes rust-lang#36379 closes rust-lang#37550 closes rust-lang#37665 closes rust-lang#38160 closes rust-lang#38954 closes rust-lang#39362 r? @Mark-Simulacrum
…=Mark-Simulacrum regression tests for ICEs closes rust-lang#36379 closes rust-lang#37550 closes rust-lang#37665 closes rust-lang#38160 closes rust-lang#38954 closes rust-lang#39362 r? @Mark-Simulacrum
The
match
doesn't cover all patterns, but instead of triggering an error (like stable does) it panics.Playpen link
Version: c8af93f 2017-01-18
Backtrace:
The text was updated successfully, but these errors were encountered: