-
Notifications
You must be signed in to change notification settings - Fork 13.3k
impossible case reached: bad combination of types for cast #21397
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
Comments
This is falling through the match expression on /src/librustc_trans/trans/consts.rs#L518-L521
I believe the case happening here is
The above bugs out somewhere in src/librustc_trans/trans/expr.rs#L2047-L2061 Should either of these casts actually succeed? |
Saw a similar case: static mut static_trait: *mut (Trait + 'static) = 0 as *mut _;
pub trait Trait {}
pub fn main() {} on |
Triage: still ICEs. fn main() {
let mut fail: *const str = 0 as *const str;
} and static mut static_trait: *mut (Trait + 'static) = 0 as *mut _;
pub trait Trait {}
pub fn main() {} |
Fixes an ICE on casting *const [T] to *const T and similar cases. Fixes rust-lang#21397 Fixes rust-lang#22955
Fixes an ICE on casting *const T to *const [T] and similar cases. Fixes rust-lang#21397 Fixes rust-lang#22955
Fixes ICEs where non-fat pointers and scalars are cast to fat pointers, Fixes rust-lang#21397 Fixes rust-lang#22955 Fix
Fixes ICEs where non-fat pointers and scalars are cast to fat pointers, Fixes rust-lang#21397 Fixes rust-lang#22955 Fixes rust-lang#23237 Fixes rust-lang#24100
Running Arch Linux: 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64 GNU/Linux
rustc 1.0.0-nightly (f4f10db 2015-01-17 20:31:08 +0000)
binary: rustc
commit-hash: f4f10db
commit-date: 2015-01-17 20:31:08 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
Here's the line that caused the error:
pub static mut SOCKS_HOST: *const str = 0 as *const str;
backtrace:
The text was updated successfully, but these errors were encountered: