-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Internal compiler error #7741
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
Labels
A-lifetimes
Area: Lifetimes / regions
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
It's probably related to lifetimes, as I'd only added the lifetime stuff to push before this error happened. |
What happens if you change |
This happens:
Which seems like it's could be right, but I certainly don't understand well enough to judge yet. |
Closing as a duplicate of #7989. When the lifetime is changed from |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Oct 7, 2021
Make if_then_panic handle situation of BinOpKind::And || BinOpKind::Or fixes rust-lang#7731 Make if_then_panic handle situation of cond.kind = ExprKind::DropTemps(ExprKind::Binary(BinOpKind::And || BinOpKind::Or, left, right), ..) = changelog: [`if_then_panic`] Fix suggestion for more complex conditions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lifetimes
Area: Lifetimes / regions
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
The code that caused it is:
The text was updated successfully, but these errors were encountered: