{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23961","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23961/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23961/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23961/events","html_url":"https://github.com/rust-lang/rust/issues/23961","id":65810623,"number":23961,"title":" let mut a = [];   ","user":{"login":"cuckookernel","id":3910947,"avatar_url":"https://avatars.githubusercontent.com/u/3910947?v=3","gravatar_id":"","url":"https://api.github.com/users/cuckookernel","html_url":"https://github.com/cuckookernel","followers_url":"https://api.github.com/users/cuckookernel/followers","following_url":"https://api.github.com/users/cuckookernel/following{/other_user}","gists_url":"https://api.github.com/users/cuckookernel/gists{/gist_id}","starred_url":"https://api.github.com/users/cuckookernel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuckookernel/subscriptions","organizations_url":"https://api.github.com/users/cuckookernel/orgs","repos_url":"https://api.github.com/users/cuckookernel/repos","events_url":"https://api.github.com/users/cuckookernel/events{/privacy}","received_events_url":"https://api.github.com/users/cuckookernel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T01:16:13Z","updated_at":"2015-04-02T02:01:16Z","closed_at":"2015-04-02T02:01:16Z","body":"This code crashes the compiler \r\n\r\n```rust\r\nfn main() {\r\n    let mut a = [];    \r\n}\r\n```\r\n\r\n```\r\nrustc --version\r\nrustc 1.0.0-nightly (d754722a0 2015-03-31) (built 2015-04-01)\r\n```\r\n\r\nOn windows 7 (64 bit) \r\n\r\n```\r\na.rs:7:19: 7:21 error: internal compiler error: cat_expr Errd\r\na.rs:7     let mut a = [];\r\n                                    ^~\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\nnote: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\nnote: run with `RUST_BACKTRACE=1` for a backtrace\r\nthread 'rustc' panicked at 'Box<Any>', C:/bot/slave/nightly-dist-rustc-win-64/build/src/libsyntax\\diagnostic.rs:130\r\n\r\nstack backtrace:\r\n   1:         0x7121c7d3 - sys::backtrace::write::h26f3dfa5607ee31dCMD\r\n   2:         0x71231b3a - rt::unwind::register::he2da75234a8bfeefOjJ\r\n   3:         0x71183130 - rt::unwind::begin_unwind_inner::ha4ed1cd24d71fc5fYgJ\r\n   4:           0x7b5af9 - diagnostic::SpanHandler::span_bug::hbab7d9e8f930b2a0BcB\r\n   5:           0x7b5ac3 - diagnostic::SpanHandler::span_bug::hbab7d9e8f930b2a0BcB\r\n   6:           0xdd24e2 - session::Session::span_bug::h3f7ba5dcfb8c2b2buto\r\n   7:          0x1759011 - check::regionck::Rcx<'a, 'tcx>.Visitor<'v>::visit_item::h549cc8f76dffe18bGDd\r\n   8:          0x1759afa - check::regionck::Rcx<'a, 'tcx>.Visitor<'v>::visit_local::h20a6c72e4c7a864epEd\r\n   9:          0x17540f6 - check::regionck::Rcx<'a, 'tcx>.Visitor<'v>::visit_expr::hbd7455afe8974b7fVDd\r\n  10:          0x17e9f13 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h516be61f8f1ab04ccOn\r\n  11:          0x17e1e41 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_item::h38e34fdef076473eQNn\r\n  12:          0x18b6598 - check_crate::h13ec7eeead4478a1BxC\r\n  13:          0x18b081c - check_crate::h13ec7eeead4478a1BxC\r\n  14:         0x652df73b - driver::phase_3_run_analysis_passes::hfb4b6f3296e77e2coGa\r\n  15:         0x652c2a65 - driver::compile_input::h99ce08289465395eQba\r\n  16:         0x65376ad3 - run_compiler::h0bba6b17cd7f9dddp2b\r\n  17:         0x65374990 - run::hd86bbfcbe6b9750a51b\r\n  18:         0x65373b9a - run::hd86bbfcbe6b9750a51b\r\n  19:         0x7126a75c - rust_try\r\n  20:         0x7126a739 - rust_try\r\n  21:         0x65373f08 - run::hd86bbfcbe6b9750a51b\r\n  22:         0x71225804 - sys::tcp::TcpListener::bind::h673da3c0fc98ee2diIH\r\n  23:     0x7ffb63a013d2 - BaseThreadInitThunk\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/88691878","html_url":"https://github.com/rust-lang/rust/issues/23961#issuecomment-88691878","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/23961","id":88691878,"user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T02:01:16Z","updated_at":"2015-04-02T02:01:16Z","body":"Duplicate of https://github.com/rust-lang/rust/issues/22897, thanks for filing nonetheless!"}}