-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Taking a reference to a static with an extern type ICEs #57876
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-codegen
Area: Code generation
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
@mehcode please provide a backtracke in the future, but thanks anyway for the report! ❤️
|
cc #43467 |
Looks like this was introduced by #55257, but the reasoning for the change seems sound. I think the handling of a static |
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Feb 7, 2019
Do not ICE in codegen when using a extern_type static The layout of a extern_type static is unsized, but may pass the Well-Formed check in typeck (See rust-lang#55257). As a result, we cannot assume that a static is sized when generating the `Place` for an r-value. Fixes: rust-lang#57876 r? @oli-obk
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-codegen
Area: Code generation
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=19c98852cf33b7b65ec942629c6ced44
The text was updated successfully, but these errors were encountered: