Skip to content

unexpected panic: 'index out of bounds' in src/libsyntax/lib.rs:1 #21349

Closed
@compwron

Description

@compwron

viewable in code by running "cargo test" on compwron/apod-rs@a384171

rustc --version --verbose
rustc 1.0.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-apple-darwin
release: 1.0.0-dev
RUST_BACKTRACE=1 cargo test
   Compiling apod-rs v0.0.1 (file:///removed/apod-rs)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'index out of bounds: the len is 61 but the index is 82', /private/tmp/rust-LZYYGM/rustc-1.0.0-alpha/src/libsyntax/lib.rs:1

stack backtrace:
   1:        0x10ebe7ea5 - sys::backtrace::write::h88667324e51e902blCt
   2:        0x10ec0a33f - failure::on_fail::hc2677658fe34f5940Hz
   3:        0x10eb75fba - rt::unwind::begin_unwind_inner::he21ec6773fc28d02Qpz
   4:        0x10eb761b4 - rt::unwind::begin_unwind_fmt::h8b100f24510c92denoz
   5:        0x10ec09dae - rust_begin_unwind
   6:        0x10ec54267 - panicking::panic_fmt::h6e3ac47ca25015fbpfl
   7:        0x10ec5d9f1 - panicking::panic_bounds_check::hfe2aec03305a8096qel
   8:        0x116585978 - util::interner::StrInterner::get::h3103bf181f1efe17cqa
   9:        0x116592eb8 - ast::Name::as_str::hda411ef4ab5a65a2CQb
  10:        0x116592e63 - ast::Ident::as_str::he162ec0b73f2f88eHBb
  11:        0x1141ccc62 - MacParser<'a, 'b>::parse_struct_info::h3c80bacaa7138289Zva
  12:        0x114159b9b - MacParser<'a, 'b>::parse::h243ffac11cb66dcaopa
  13:        0x1141598a5 - expand::he945c3cd1254c2adVaa
  14:        0x1149197a0 - ext::base::F.TTMacroExpander::expand::h3665070096331088094
  15:        0x10cd697e4 - ext::expand::expand_item_mac::h48bc98628e18e5a3Mle
  16:        0x10cd66b87 - ext::expand::expand_item::hdfee365d1dd1a51d4be
  17:        0x10cd71702 - ext::expand::MacroExpander<'a, 'b>.Folder::fold_item::h8af706efffa435b3kWe
  18:        0x10cd71460 - fold::noop_fold_mod::unboxed_closure.55994
  19:        0x10cd713f9 - option::Option<T>::map::h12640353334608187034
  20:        0x10cd7110b - vec::Vec<T>.FromIterator<T>::from_iter::h267406068566738860
  21:        0x10cd700ac - fold::noop_fold_mod::h7051553993158222842
  22:        0x10cd6c1e2 - ext::expand::expand_item_underscore::hebdce2c487717b84Aje
  23:        0x10cd6a9ce - fold::noop_fold_item_simple::h2954330205595350752
  24:        0x10cd6a69d - ptr::P<T>::map::h14097217919704469944
  25:        0x10cd67089 - ext::expand::expand_item::hdfee365d1dd1a51d4be
  26:        0x10cd71702 - ext::expand::MacroExpander<'a, 'b>.Folder::fold_item::h8af706efffa435b3kWe
  27:        0x10cdc6d1b - ext::expand::expand_crate::hd823fc295922f1d7B0e
  28:        0x10b781baf - driver::phase_2_configure_and_expand::unboxed_closure.18498
  29:        0x10b7403eb - driver::phase_2_configure_and_expand::h365a0a2014e65fc6Xja
  30:        0x10b7318e7 - driver::compile_input::h562d974fc66a26c3xba
  31:        0x10b7fe84a - monitor::unboxed_closure.22554
  32:        0x10b7fcfa5 - thunk::F.Invoke<A, R>::invoke::h14915348559688536793
  33:        0x10b7fbd80 - rt::unwind::try::try_fn::h13079246484893734878
  34:        0x10ec6fd89 - rust_try_inner
  35:        0x10ec6fd76 - rust_try
  36:        0x10b7fc47c - thunk::F.Invoke<A, R>::invoke::h3946925663965784710
  37:        0x10ebf7b44 - sys::thread::thread_start::hb23f23b709977993drw
  38:     0x7fff947c6899 - _pthread_body
  39:     0x7fff947c672a - _pthread_struct_init

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