<p dir="auto">While compiling rust-amqp on archlinux with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version --verbose
rustc 1.0.0-nightly (1d00c545e 2015-01-30 19:56:34 +0000)
binary: rustc
commit-hash: 1d00c545ede609b9d43fdf9f252c15da5a66dac7
commit-date: 2015-01-30 19:56:34 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate">$ rustc --version --verbose
rustc 1.0.0-nightly (1d00c545e 2015-01-30 19:56:34 +0000)
binary: rustc
commit-hash: 1d00c545ede609b9d43fdf9f252c15da5a66dac7
commit-date: 2015-01-30 19:56:34 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
</code></pre></div>
<p dir="auto">I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[rust-amqp]$ RUST_BACKTRACE=1 cargo build
   Compiling rustc-serialize v0.2.10
   Compiling traverse v0.0.6
   Compiling matches v0.1.2
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 0 but the index is 0', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/infer/region_inference/mod.rs:1015

stack backtrace:
   1:     0x7ffab1c92870 - sys::backtrace::write::h26b40214a7757117H8t
   2:     0x7ffab1cb5be0 - failure::on_fail::h7a79bf921b6662fbzkB
   3:     0x7ffab1c221f0 - rt::unwind::begin_unwind_inner::hfe1c0e12f5e834cfAZA
   4:     0x7ffab1c22d10 - rt::unwind::begin_unwind_fmt::hd85238b7766b1d9c6XA
   5:     0x7ffab1cb5a40 - rust_begin_unwind
   6:     0x7ffab1cfeb30 - panicking::panic_fmt::hbf14918471a5d16aARv
   7:     0x7ffab1d07200 - panicking::panic_bounds_check::h2f556216bcf9eddcBQv
   8:     0x7ffaafe2bf10 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::infer_variable_values::hf801525cb54c3322mVv
   9:     0x7ffaafe2bba0 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::resolve_regions::h243fc1b32cc41503Yyv
  10:     0x7ffaafe4b310 - middle::infer::InferCtxt&lt;'a, 'tcx&gt;::resolve_regions_and_report_errors::h778904889b2bb757d8z
  11:     0x7ffab141f720 - check::compare_method::compare_impl_method::h45a938553ccd0eda93k
  12:     0x7ffab1427d50 - check::check_item::hc325db96fe7f49f3j9l
  13:     0x7ffab142e3a0 - visit::walk_item::h14413110965835539520
  14:     0x7ffab142e3a0 - visit::walk_item::h14413110965835539520
  15:     0x7ffab14f7ad0 - check_crate::closure.33894
  16:     0x7ffab14f25b0 - check_crate::hd5b0ce5ac42bd86cIEz
  17:     0x7ffab221df50 - driver::phase_3_run_analysis_passes::h3a3da09b2eae9713NFa
  18:     0x7ffab2205330 - driver::compile_input::h802d2a6759ac022fBba
  19:     0x7ffab22cb230 - run_compiler::h4517938d3296cfc5l9b
  20:     0x7ffab22c98c0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h5452441173088021345
  21:     0x7ffab22c87f0 - rt::unwind::try::try_fn::h8490101008730471441
  22:     0x7ffab1d20f60 - rust_try_inner
  23:     0x7ffab1d20f50 - rust_try
  24:     0x7ffab22c8aa0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h13338196279056651375
  25:     0x7ffab1ca23b0 - sys::thread::thread_start::h395b8c6815673c5cN3w
  26:     0x7ffaabeea250 - start_thread
  27:     0x7ffab18b4219 - clone
  28:                0x0 - &lt;unknown&gt;

Build failed, waiting for other jobs to finish...
Could not compile `traverse`.                                                    "><pre class="notranslate"><code class="notranslate">[rust-amqp]$ RUST_BACKTRACE=1 cargo build
   Compiling rustc-serialize v0.2.10
   Compiling traverse v0.0.6
   Compiling matches v0.1.2
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 0 but the index is 0', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/infer/region_inference/mod.rs:1015

stack backtrace:
   1:     0x7ffab1c92870 - sys::backtrace::write::h26b40214a7757117H8t
   2:     0x7ffab1cb5be0 - failure::on_fail::h7a79bf921b6662fbzkB
   3:     0x7ffab1c221f0 - rt::unwind::begin_unwind_inner::hfe1c0e12f5e834cfAZA
   4:     0x7ffab1c22d10 - rt::unwind::begin_unwind_fmt::hd85238b7766b1d9c6XA
   5:     0x7ffab1cb5a40 - rust_begin_unwind
   6:     0x7ffab1cfeb30 - panicking::panic_fmt::hbf14918471a5d16aARv
   7:     0x7ffab1d07200 - panicking::panic_bounds_check::h2f556216bcf9eddcBQv
   8:     0x7ffaafe2bf10 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::infer_variable_values::hf801525cb54c3322mVv
   9:     0x7ffaafe2bba0 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::resolve_regions::h243fc1b32cc41503Yyv
  10:     0x7ffaafe4b310 - middle::infer::InferCtxt&lt;'a, 'tcx&gt;::resolve_regions_and_report_errors::h778904889b2bb757d8z
  11:     0x7ffab141f720 - check::compare_method::compare_impl_method::h45a938553ccd0eda93k
  12:     0x7ffab1427d50 - check::check_item::hc325db96fe7f49f3j9l
  13:     0x7ffab142e3a0 - visit::walk_item::h14413110965835539520
  14:     0x7ffab142e3a0 - visit::walk_item::h14413110965835539520
  15:     0x7ffab14f7ad0 - check_crate::closure.33894
  16:     0x7ffab14f25b0 - check_crate::hd5b0ce5ac42bd86cIEz
  17:     0x7ffab221df50 - driver::phase_3_run_analysis_passes::h3a3da09b2eae9713NFa
  18:     0x7ffab2205330 - driver::compile_input::h802d2a6759ac022fBba
  19:     0x7ffab22cb230 - run_compiler::h4517938d3296cfc5l9b
  20:     0x7ffab22c98c0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h5452441173088021345
  21:     0x7ffab22c87f0 - rt::unwind::try::try_fn::h8490101008730471441
  22:     0x7ffab1d20f60 - rust_try_inner
  23:     0x7ffab1d20f50 - rust_try
  24:     0x7ffab22c8aa0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h13338196279056651375
  25:     0x7ffab1ca23b0 - sys::thread::thread_start::h395b8c6815673c5cN3w
  26:     0x7ffaabeea250 - start_thread
  27:     0x7ffab18b4219 - clone
  28:                0x0 - &lt;unknown&gt;

Build failed, waiting for other jobs to finish...
Could not compile `traverse`.                                                    
</code></pre></div>
<p dir="auto">Attempting to compile <a href="https://github.com/reem/rust-traverse">https://github.com/reem/rust-traverse</a> with <code class="notranslate">cargo 0.0.1-pre-nightly (453ae9f 2015-01-29 00:56:56 +0000)</code> and <code class="notranslate">rustc 1.0.0-nightly (c5961ad06 2015-01-28 21:49:38 +0000)</code> yields the following ICE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/infer/region_inference/mod.rs:1015

stack backtrace:
   1:     0x7f8da355a880 - sys::backtrace::write::h471f2f26c91df096Q8t
   2:     0x7f8da357df80 - failure::on_fail::h389257f46ebc50afikB
   3:     0x7f8da34ea220 - rt::unwind::begin_unwind_inner::haa1ac937607e9179jZA
   4:     0x7f8da34ead50 - rt::unwind::begin_unwind_fmt::ha84452bff441c4ffPXA
   5:     0x7f8da357dde0 - rust_begin_unwind
   6:     0x7f8da35c6ef0 - panicking::panic_fmt::ha791a233597f33dbBRv
   7:     0x7f8da35cf5c0 - panicking::panic_bounds_check::h7964adf489703576CQv
   8:     0x7f8da16d6ce0 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::infer_variable_values::hdb795f883c676391mJw
   9:     0x7f8da16d6970 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::resolve_regions::h2570f98c1810a795Ymw
  10:     0x7f8da16fc020 - middle::infer::InferCtxt&lt;'a, 'tcx&gt;::resolve_regions_and_report_errors::ha6a986062307cc873YA
  11:     0x7f8da2cc9b70 - check::compare_method::compare_impl_method::h33ae495a649fd66cIgk
  12:     0x7f8da2cd21a0 - check::check_item::hf11061a9881d4ad88ll
  13:     0x7f8da2cd87f0 - visit::walk_item::h17525548578187088888
  14:     0x7f8da2cd87f0 - visit::walk_item::h17525548578187088888
  15:     0x7f8da2da1ee0 - check_crate::closure.32081
  16:     0x7f8da2d9c9c0 - check_crate::he229bdeb8fdc745cDNy
  17:     0x7f8da3ae5d80 - driver::phase_3_run_analysis_passes::h2272be7454e1eb80NFa
  18:     0x7f8da3acd130 - driver::compile_input::hb694f278d4428f99Bba
  19:     0x7f8da3b91940 - run_compiler::hc3e25a8f6c4a1b50n9b
  20:     0x7f8da3b90050 - thunk::F.Invoke&lt;A, R&gt;::invoke::h8035325489603501466
  21:     0x7f8da3b8efb0 - rt::unwind::try::try_fn::h9312387582241745294
  22:     0x7f8da35e9320 - rust_try_inner
  23:     0x7f8da35e9310 - rust_try
  24:     0x7f8da3b8f260 - thunk::F.Invoke&lt;A, R&gt;::invoke::h8464768559817507673
  25:     0x7f8da356a770 - sys::thread::thread_start::he52b8673a3629881W3w
  26:     0x7f8d9d767fe0 - start_thread
  27:     0x7f8da316c859 - __clone
  28:                0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/infer/region_inference/mod.rs:1015

stack backtrace:
   1:     0x7f8da355a880 - sys::backtrace::write::h471f2f26c91df096Q8t
   2:     0x7f8da357df80 - failure::on_fail::h389257f46ebc50afikB
   3:     0x7f8da34ea220 - rt::unwind::begin_unwind_inner::haa1ac937607e9179jZA
   4:     0x7f8da34ead50 - rt::unwind::begin_unwind_fmt::ha84452bff441c4ffPXA
   5:     0x7f8da357dde0 - rust_begin_unwind
   6:     0x7f8da35c6ef0 - panicking::panic_fmt::ha791a233597f33dbBRv
   7:     0x7f8da35cf5c0 - panicking::panic_bounds_check::h7964adf489703576CQv
   8:     0x7f8da16d6ce0 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::infer_variable_values::hdb795f883c676391mJw
   9:     0x7f8da16d6970 - middle::infer::region_inference::RegionVarBindings&lt;'a, 'tcx&gt;::resolve_regions::h2570f98c1810a795Ymw
  10:     0x7f8da16fc020 - middle::infer::InferCtxt&lt;'a, 'tcx&gt;::resolve_regions_and_report_errors::ha6a986062307cc873YA
  11:     0x7f8da2cc9b70 - check::compare_method::compare_impl_method::h33ae495a649fd66cIgk
  12:     0x7f8da2cd21a0 - check::check_item::hf11061a9881d4ad88ll
  13:     0x7f8da2cd87f0 - visit::walk_item::h17525548578187088888
  14:     0x7f8da2cd87f0 - visit::walk_item::h17525548578187088888
  15:     0x7f8da2da1ee0 - check_crate::closure.32081
  16:     0x7f8da2d9c9c0 - check_crate::he229bdeb8fdc745cDNy
  17:     0x7f8da3ae5d80 - driver::phase_3_run_analysis_passes::h2272be7454e1eb80NFa
  18:     0x7f8da3acd130 - driver::compile_input::hb694f278d4428f99Bba
  19:     0x7f8da3b91940 - run_compiler::hc3e25a8f6c4a1b50n9b
  20:     0x7f8da3b90050 - thunk::F.Invoke&lt;A, R&gt;::invoke::h8035325489603501466
  21:     0x7f8da3b8efb0 - rt::unwind::try::try_fn::h9312387582241745294
  22:     0x7f8da35e9320 - rust_try_inner
  23:     0x7f8da35e9310 - rust_try
  24:     0x7f8da3b8f260 - thunk::F.Invoke&lt;A, R&gt;::invoke::h8464768559817507673
  25:     0x7f8da356a770 - sys::thread::thread_start::he52b8673a3629881W3w
  26:     0x7f8d9d767fe0 - start_thread
  27:     0x7f8da316c859 - __clone
  28:                0x0 - &lt;unknown&gt;
</code></pre></div>