-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 on pattern matching while compiling rust compiler #41169
Comments
This is an assertion coming from your patch:
+ assert!(match e.node { ExprMatch(..) => true, _ => false }); You could try printing out match e.node {
ExprMatch(..) => true,
_ => span_bug!(e.span, "unexpected expr {:?}", e.node)
} |
I replaced the assert with the match, but I'm getting an ICE on that one too, so it is not happening due to the assertion. The error message's a bit different though:
|
That ICE was exactly the point of the snippet, it's telling you that it found an ExprClosure (and not an ExprMatch). |
Seems like we need a third source, |
Since this is a probem (I believe) with an in-progress patch, and not the current compiler, I'm going to close the issue. But @cynicaldevil, just to be clear, the situation is that I was suggesting we write a function ( |
The rust compiler unexpectedly crashed while I was trying to fix a bug (#40402):
For context, I was trying to add a method in
hir/map/mod.rs
while this happened. Here is the diff I have now:The text was updated successfully, but these errors were encountered: