-
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 when break and enum variants mixed in match
arms
#41213
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
TimNN
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Apr 11, 2017
This was introduced between 1.11 and 1.12. |
cc @nikomatsakis @canndrew This looks like it has something to do with the |
looking at it. |
Indeed, probably something I introduced. |
@arielb1 are you going to have time to investigate, or you want me to? |
Sorry. Was busy yesterday. I'll look at it today or tommorow. |
Wrong comment: // No adjustments can produce a fn item, so this should never trip. |
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Apr 13, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 14, 2017
…ikomatsakis rustc_typeck: consolidate adjustment composition Instead of having `write_adjustment` overwrite the previous adjustment, have `apply_adjustment` compose a new adjustment on top of the previous one. This is important because `NeverToAny` adjustments can be present on expressions during coercion. Fixes rust-lang#41213. r? @nikomatsakis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
then, rustc crashes with this message.
Meta
rustc --version --verbose
:Note
break
arm isn't the first, ICE doesn't occur.The text was updated successfully, but these errors were encountered: