Skip to content

'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6' #19195

Closed
@dan-t

Description

@dan-t

When trying to build https://github.com/dan-t/rust-confsolve with

rustc 0.13.0-nightly (770378a31 2014-11-20 23:02:01 +0000)
binary: rustc
commit-hash: 770378a313a573776b16237a46b75bafa49072c1
commit-date: 2014-11-20 23:02:01 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly

I'm getting

Compiling confsolve v0.0.1 (file:///home/dan/projekte/rust-confsolve)
<std macros>:3:24: 90:27 error: type `std::io::buffered::LineBufferedWriter<std::io::stdio::StdWriter>` cannot be dereferenced
<std macros>:3         let dst = &mut *$dst;
<std macros>:4         format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
<std macros>:5     })
<std macros>:6 )
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
task 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1

stack backtrace:
   1:     0x2af1b21ea9c0 - rt::backtrace::imp::write::h38e72df4f68c2a0fB9s
   2:     0x2af1b21edb60 - failure::on_fail::hfed62fa5028805c5uwt
   3:     0x2af1b1a83c80 - unwind::begin_unwind_inner::hd2440d158cff1c59nbd
   4:     0x2af1b1a83900 - unwind::begin_unwind_fmt::h1502fd95862e68e1y8c
   5:     0x2af1b1a838c0 - rust_begin_unwind
   6:     0x2af1b1ac9a70 - panicking::panic_fmt::hdb583b5ebe5872a7aOl
   7:     0x2af1b1acee60 - panicking::panic_bounds_check::h4750b1891a0972ceIMl
   8:     0x2af1b3f8ab90 - codemap::FileMap::get_line::hdcd841b8bcad1665m4E
   9:     0x2af1b3fb95b0 - diagnostic::emit::h56f550342f8800f8wvG
  10:     0x2af1b3fb5fd0 - diagnostic::EmitterWriter.Emitter::emit::hbe5adfb70e9cb44alrG
  11:     0x2af1b3fb4850 - diagnostic::Handler::emit::hc019cdbd0851752bF8F
  12:     0x2af1b3f87370 - diagnostic::SpanHandler::span_err::h3a81a48992ff1ca1EWF
  13:     0x2af1b2d7a4f0 - middle::typeck::infer::InferCtxt<'a, 'tcx>::type_error_message_str_with_expected::hcaf474f347ea1ddeTKF
  14:     0x2af1b2cc4c30 - middle::typeck::infer::InferCtxt<'a, 'tcx>::type_error_message::h4868d740d424dac2dQF
  15:     0x2af1b2cce390 - middle::typeck::check::check_expr_with_unifier::hdebf9fa758ecc032Nzm
  16:     0x2af1b2cce390 - middle::typeck::check::check_expr_with_unifier::hdebf9fa758ecc032Nzm
  17:     0x2af1b2d04c10 - middle::typeck::check::check_decl_local::h2e032403ded7d340gto
  18:     0x2af1b2d04dd0 - middle::typeck::check::check_stmt::heb4bb2683892d7d7gvo
  19:     0x2af1b2c86b00 - middle::typeck::check::check_block_with_expected::h0ba983ab47653a58vzo
  20:     0x2af1b2cce390 - middle::typeck::check::check_expr_with_unifier::hdebf9fa758ecc032Nzm
  21:     0x2af1b2d04c10 - middle::typeck::check::check_decl_local::h2e032403ded7d340gto
  22:     0x2af1b2d04dd0 - middle::typeck::check::check_stmt::heb4bb2683892d7d7gvo
  23:     0x2af1b2c86b00 - middle::typeck::check::check_block_with_expected::h0ba983ab47653a58vzo
  24:     0x2af1b2c5e8f0 - middle::typeck::check::check_fn::hc7a622e19c048aa8e0i
  25:     0x2af1b2c83400 - middle::typeck::check::check_bare_fn::hfb9c28facdaa4f3fjPi
  26:     0x2af1b2c7f1f0 - middle::typeck::check::check_item::h984b1c058d205724t9i
  27:     0x2af1b2c83090 - middle::typeck::check::check_item_types::h1afe01e3a1c1b731tOi
  28:     0x2af1b3026b80 - util::common::time::h4440028039365931314
  29:     0x2af1b3025d90 - middle::typeck::check_crate::hf8e3b89c5e2c098fcwM
  30:     0x2af1b167de50 - driver::driver::phase_3_run_analysis_passes::h5359d51c361e0d69tfS
  31:     0x2af1b1672c70 - driver::driver::compile_input::h56e37c9f95bced56dWR
  32:     0x2af1b16f7560 - driver::run_compiler::hae38ed40c1a5e42bHUT
  33:     0x2af1b16f7450 - driver::run::closure.59803
  34:     0x2af1b1504000 - task::TaskBuilder<S>::try_future::closure.39059
  35:     0x2af1b1503df0 - task::TaskBuilder<S>::spawn_internal::closure.39030
  36:     0x2af1b1274b10 - task::NativeSpawner.Spawner::spawn::closure.2471
  37:     0x2af1b1adc4c0 - rust_try_inner
  38:     0x2af1b1adc4b0 - rust_try
  39:     0x2af1b1a815e0 - unwind::try::h13cddac141b4f78fIZc
  40:     0x2af1b1a81470 - task::Task::run::hafaf90f81703a435y5b
  41:     0x2af1b1274850 - task::NativeSpawner.Spawner::spawn::closure.2397
  42:     0x2af1b1a82c90 - thread::thread_start::hda75e847cb45320fEqc
  43:     0x2af1b72550c0 - start_thread
  44:     0x2af1b1e7e2d9 - __clone
  45:                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