Skip to content

impossible case reached: bad combination of types for cast #21397

Closed
@mhobbs-8B

Description

@mhobbs-8B

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:

thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:126

stack backtrace:
   1:     0x7f81445c3c90 - sys::backtrace::write::hda88ebe91818f572tXt
   2:     0x7f81445e5b90 - failure::on_fail::h9fbfe25f5b38e775qeA
   3:     0x7f8144554300 - rt::unwind::begin_unwind_inner::h1bd92865247a942cjTz
   4:     0x7f813efd7770 - rt::unwind::begin_unwind::h15336451338054780329
   5:     0x7f813efd7700 - diagnostic::SpanHandler::span_bug::h110bf60630d186b1VoF
   6:     0x7f814293e690 - session::Session::impossible_case::h7839f1024fe36b1etFp
   7:     0x7f8143d5eb50 - trans::consts::const_expr_unadjusted::he1dcbfb2818dd7e8Gfo
   8:     0x7f8143d5cdb0 - trans::consts::const_expr::h734b9de8ebda8b92N4n
   9:     0x7f8143c977b0 - trans::base::get_item_val::h8df99413e1d50374a3u
  10:     0x7f8143d64450 - trans::consts::trans_static::hfe38a6a23470d6e4UJo
  11:     0x7f8143c952c0 - trans::base::trans_item::h25a1b35201e5520bCyu
  12:     0x7f8143d7d320 - trans::base::trans_mod::h63dc8a5716cd3e9eeEu
  13:     0x7f8143c952c0 - trans::base::trans_item::h25a1b35201e5520bCyu
  14:     0x7f8143d804d0 - trans::base::trans_crate::hcee70ebbe1e36918juv
  15:     0x7f8144b26a70 - driver::phase_4_translate_to_llvm::h1d3249612b78766ewOa
  16:     0x7f8144b06960 - driver::compile_input::h9092b12341e3a857Cba
  17:     0x7f8144bc8340 - run_compiler::h62323e6edb706ae8nac
  18:     0x7f8144bc6ab0 - thunk::F.Invoke<A, R>::invoke::h12018745279237426453
  19:     0x7f8144bc5a10 - rt::unwind::try::try_fn::h1504517046915204584
  20:     0x7f814464cc00 - rust_try_inner
  21:     0x7f814464cbf0 - rust_try
  22:     0x7f8144bc5cc0 - thunk::F.Invoke<A, R>::invoke::h3360625291245025634
  23:     0x7f81445d37f0 - sys::thread::thread_start::h4faa993964f784ad5Nw
  24:     0x7f813e7f3250 - start_thread
  25:     0x7f8144205219 - clone
  26:                0x0 - <unknown>

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions