-
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
Compiler error on nightly (since April 28th): librustc/ty/layout.rs:1002: impossible case reached
#50442
Comments
I got the same ICE with |
Is there any chance we can bisect this? The https://github.com/rust-lang-nursery/cargo-bisect-rustc tool may be of use. It'd be great if we could narrow this down to a specific PR. That said, I'll cc @eddyb since they tend to be the owner of the layout code. |
cc @nox |
Well I guess the original poster already narrowed down Apr 27 as the "last working nightly", so that should help (though the cargo-bisect-rustc tool could identify the specific PR) |
EDIT: nevermind it's "just" uninhabited structs being "unions". |
Minimal reproduction by guessing from the code: enum Void {}
enum Foo { A(i32), B(Void), C(i32) } |
I confirm that with the latest nightly (2018-05-13) it compiles just fine. |
I have a "largish" piece of code that fails to build with any nightly compilers since April 28th. The latest to work was April 27th.
The error is:
In order to reproduce this error, and to check the last nightly that works, bellow are the
bash
snippets that clone the repository, install the two nightlies viarust-up
in the current folder, and execute the compilation:rust-up
environment:The full output obtained from
rustc
is bellow:If need I can try to use a different build, arguments, etc.
Hope it helps in finding the issue,
Ciprian.
The text was updated successfully, but these errors were encountered: