{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21804","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21804/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21804/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21804/events","html_url":"https://github.com/rust-lang/rust/issues/21804","id":56123185,"number":21804,"title":"thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0'","user":{"login":"medimatrix","id":4295266,"avatar_url":"https://avatars.githubusercontent.com/u/4295266?v=3","gravatar_id":"","url":"https://api.github.com/users/medimatrix","html_url":"https://github.com/medimatrix","followers_url":"https://api.github.com/users/medimatrix/followers","following_url":"https://api.github.com/users/medimatrix/following{/other_user}","gists_url":"https://api.github.com/users/medimatrix/gists{/gist_id}","starred_url":"https://api.github.com/users/medimatrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medimatrix/subscriptions","organizations_url":"https://api.github.com/users/medimatrix/orgs","repos_url":"https://api.github.com/users/medimatrix/repos","events_url":"https://api.github.com/users/medimatrix/events{/privacy}","received_events_url":"https://api.github.com/users/medimatrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-31T12:19:10Z","updated_at":"2015-01-31T14:09:45Z","closed_at":null,"body":"While cargo was compiling [traverse](https://github.com/reem/rust-traverse), I encountered the error `thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0'`.\r\n\r\n```\r\n$ uname -rsm\r\nLinux 3.13.0-24-generic x86_64\r\n\r\n$ rustc --version --verbose\r\nrustc 1.0.0-dev\r\nbinary: rustc\r\ncommit-hash: unknown\r\ncommit-date: unknown\r\nhost: x86_64-unknown-linux-gnu\r\nrelease: 1.0.0-dev\r\n```\r\n\r\n```\r\nCompiling traverse v0.0.6\r\nerror: internal compiler error: unexpected panic\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\nnote: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html\r\nnote: run with `RUST_BACKTRACE=1` for a backtrace\r\nthread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /build/buildd/rust-nightly-201501310408~1d00c54~trusty/src/librustc/middle/infer/region_inference/mod.rs:1015\r\n```\r\nBacktrace:\r\n```\r\nstack backtrace:\r\n   1:     0x7f52fa93e4d0 - sys::backtrace::write::hab6dd99acb511764H8t\r\n   2:     0x7f52fa961840 - <unknown>\r\n   3:     0x7f52fa8cde50 - rt::unwind::begin_unwind_inner::h3266fe1d96f60e3fAZA\r\n   4:     0x7f52fa8ce970 - rt::unwind::begin_unwind_fmt::he5da4c6aaeb74bfa6XA\r\n   5:     0x7f52fa9616a0 - rust_begin_unwind\r\n   6:     0x7f52fa9a9a50 - panicking::panic_fmt::h18479da70a65102cARv\r\n   7:     0x7f52fa9b2120 - panicking::panic_bounds_check::h3eb82e89c0e73253BQv\r\n   8:     0x7f52f8ab4000 - <unknown>\r\n   9:     0x7f52f8ab3c90 - middle::infer::region_inference::RegionVarBindings<'a, 'tcx>::resolve_regions::hf123a4c5108ce144Yyv\r\n  10:     0x7f52f8ad3400 - middle::infer::InferCtxt<'a, 'tcx>::resolve_regions_and_report_errors::h70d3d0c25f8018a9d8z\r\n  11:     0x7f52fa0a61a0 - <unknown>\r\n  12:     0x7f52fa0ae7d0 - <unknown>\r\n  13:     0x7f52fa0b4e20 - <unknown>\r\n  14:     0x7f52fa0b4e20 - <unknown>\r\n  15:     0x7f52fa17e550 - <unknown>\r\n  16:     0x7f52fa179030 - check_crate::hcad51444396ed313IEz\r\n  17:     0x7f52faec7b70 - driver::phase_3_run_analysis_passes::h7f0251bcf43e0862NFa\r\n  18:     0x7f52faeaef50 - driver::compile_input::h10073932bcf4c3a9Bba\r\n  19:     0x7f52faf74f50 - <unknown>\r\n  20:     0x7f52faf735e0 - <unknown>\r\n  21:     0x7f52faf72510 - <unknown>\r\n  22:     0x7f52fa9cbe80 - <unknown>\r\n  23:     0x7f52fa9cbe70 - rust_try\r\n  24:     0x7f52faf727c0 - <unknown>\r\n  25:     0x7f52fa94e010 - <unknown>\r\n  26:     0x7f52f4cb20c0 - start_thread\r\n  27:     0x7f52fa54dec9 - __clone\r\n  28:                0x0 - <unknown>\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/72319115","html_url":"https://github.com/rust-lang/rust/issues/21804#issuecomment-72319115","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21804","id":72319115,"user":{"login":"renato-zannon","id":486508,"avatar_url":"https://avatars.githubusercontent.com/u/486508?v=3","gravatar_id":"","url":"https://api.github.com/users/renato-zannon","html_url":"https://github.com/renato-zannon","followers_url":"https://api.github.com/users/renato-zannon/followers","following_url":"https://api.github.com/users/renato-zannon/following{/other_user}","gists_url":"https://api.github.com/users/renato-zannon/gists{/gist_id}","starred_url":"https://api.github.com/users/renato-zannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renato-zannon/subscriptions","organizations_url":"https://api.github.com/users/renato-zannon/orgs","repos_url":"https://api.github.com/users/renato-zannon/repos","events_url":"https://api.github.com/users/renato-zannon/events{/privacy}","received_events_url":"https://api.github.com/users/renato-zannon/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T14:09:45Z","updated_at":"2015-01-31T14:09:45Z","body":"Seems like a duplicate of #21750 "}}