-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: assertion failed: layout.is_sized()
#121443
Comments
@rustbot claim |
|
We are returning the type of the last element of a tuple in
This seems to be the opposite of what we want. Since only the last element of a tuple is allowed to be unsized, we should be returning types of all elements except the last one. If we do that the present ICE gets fixed because now However, I'm not confident this is the right solution because a. it's surprising that we've had this "wrong" logic in Edit I have now amended PR #121726 to return all elements. |
…, r=<try> Check that return type is WF in typeck Ensures that non-WF types do not pass typeck and then later ICE in MIR/const eval Fixes rust-lang#121443
We have abandoned this approach and instead fixed the issue by adding a WF check as a part of typeck (PR #122078) |
auto-reduced (treereduce-rust):
original code
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: