Skip to content

ICE: ident only path should have been covered already #23597

Closed
@fmendez

Description

@fmendez

Minimal example to reproduce (malformed array declaration):

fn main() {
    let bla[isize;5] = [0;5];
}

Output

src/main.rs:2:9: 2:12 error: internal compiler error: ident only path should have been covered already
src/main.rs:2     let bla[isize;5] = [0;5];
                      ^~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:130

stack backtrace:
   1:        0x11119625b - sys::backtrace::write::hf72be5f813c90d15u5C
   2:        0x1111c1918 - panicking::on_panic::h357b9ffd8bc8f79dSWI
   3:        0x1110de7f7 - rt::unwind::begin_unwind_inner::h12b438ebbd8042edUFI
   4:        0x1108d37ce - rt::unwind::begin_unwind::h4369435781297418514
   5:        0x1108d377b - diagnostic::SpanHandler::span_bug::h853a022b690aedcaDaB
   6:        0x1108fbe58 - parse::parser::Parser<'a>::parse_pat::hc63de28bd64b0b52oBH
   7:        0x11090ff01 - parse::parser::Parser<'a>::parse_local::h9c98c8f6a10fa0c3ISH
   8:        0x110910930 - parse::parser::Parser<'a>::parse_stmt_::h89dfb0c159e79c82PVH
   9:        0x1109090eb - parse::parser::Parser<'a>::parse_block_tail::h29764a009812f1c395H
  10:        0x1108f5b9f - parse::parser::Parser<'a>::parse_inner_attrs_and_block::hbcd241202ba69a8024H
  11:        0x11091c93f - parse::parser::Parser<'a>::parse_item_fn::h07befed94e01b7afSHI
  12:        0x1109137e9 - parse::parser::Parser<'a>::parse_item_::h1a7567183f075285hCJ
  13:        0x110922781 - parse::parser::Parser<'a>::parse_mod_items::h34bd4c448262f56bR5I
  14:        0x1109287fa - parse::parser::Parser<'a>::parse_crate_mod::h66c5e5883ab0fe0d50J
  15:        0x11093d630 - parse::parse_crate_from_file::hce10797f00bc1302SPQ
  16:        0x10d6f85ee - driver::phase_1_parse_input::closure.15455
  17:        0x10d6d204c - driver::phase_1_parse_input::h8843c0cb78a2306dOqa
  18:        0x10d6cf0ef - driver::compile_input::h7fdf739785f6d9d4Rba
  19:        0x10d7907d3 - run_compiler::hb484336e43423a0fv2b
  20:        0x10d78e2f5 - thunk::F.Invoke<A, R>::invoke::h11654417678186204529
  21:        0x10d78d6b7 - rt::unwind::try::try_fn::h10741634765121132143
  22:        0x111245f68 - rust_try_inner
  23:        0x111245f55 - rust_try
  24:        0x10d78da55 - thunk::F.Invoke<A, R>::invoke::h13457747256212984027
  25:        0x1111ac83d - sys::thread::create::thread_start::h937519545136f3ecJBH
  26:     0x7fff94a06267 - _pthread_body
  27:     0x7fff94a061e4 - _pthread_start

Could not compile `test-rs`.

To learn more, run the command again with --verbose.

Rust version:

rustc --version                                                                              
rustc 1.0.0-nightly (f4e0ce66a 2015-03-19) (built 2015-03-20)

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