-
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
Panic: "internal compiler error: ident only path should have been covered already" #22426
Comments
This is not the only way to make it panic. http://is.gd/LcO1Pw
|
I also have this problem when pattern matching types with |
It seems I introduced this bug with #22158, sorry 😦. The ICE happens because I had refactored parts of the parser that seemed to be dead code, apparently I was wrong about that though, and neither testsuite nor the rest of the compiler codebase walked into it. The good news is that its straightforward to fix, someone just needs to revert the linked part of the diff (And add a test for it...). |
Closes rust-lang#22426 Closes rust-lang#22589 Closes rust-lang#22665 Closes rust-lang#22712
Seems that I made a different approach.. did I do something wrong? :P |
Was it legal before to have type paramters there, or did it lead to an error in a later stage? |
It was legal, see my comment here #22546 (comment) |
I made a patch for this, changed |
Okay, so allowing |
|
Well, thats an unrelated issue to this one. Looking at your patch, it might be possible to catch the |
😄 Yeah I have the same feeling. |
Right, detecting the misplaced |
Agreed. This kind of code may be hard to maintain, though. |
This error is triggered by providing type parameters to a generic type in a
match
pattern.e.g.
Playpen here.
The text was updated successfully, but these errors were encountered: