-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Internal compiler error on mutable stable slice #46604
Comments
First, obviously the backtrace is borked. |
Yes it broken, but I can't get better 😢 |
I tried to bisect this but turns out that it was introduced long enough ago that I had trouble getting those versions to build. (c033942 is the oldest commit I can build since the Cargo version specified in So I turned to release binaries instead. After modifying the first line to explicitly specify the lifetime ( Here's a proper backtrace from master (ba27415):
|
…estebank Delay panic for aliasing violation for static items. Closes #46604
Internal compiler error on
rustc 1.22.1 (05e2e1c 2017-11-22) running on x86_64-pc-windows-gnu
rustc 1.24.0-nightly (0a2e9ad 2017-11-29) running on x86_64-pc-windows-gnu
also on playground
rustc 1.22.1 (05e2e1c 2017-11-22) running on x86_64-unknown-linux-gnu
rustc 1.23.0-beta.2 (c9107ee 2017-12-08) running on x86_64-unknown-linux-gnu
rustc 1.24.0-nightly (ad3543d 2017-12-08) running on x86_64-unknown-linux-gnu
I tried this code in empty lib crate:
I expected see only message "statics require immutable values".
Instead I see
Full version:
rustc 1.22.1 (05e2e1c 2017-11-22)
binary: rustc
commit-hash: 05e2e1c
commit-date: 2017-11-22
host: x86_64-pc-windows-gnu
release: 1.22.1
LLVM version: 4.0
rustc 1.24.0-nightly (0a2e9ad 2017-11-29)
binary: rustc
commit-hash: 0a2e9ad
commit-date: 2017-11-29
host: x86_64-pc-windows-gnu
release: 1.24.0-nightly
LLVM version: 4.0
The text was updated successfully, but these errors were encountered: