{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/24644","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/24644/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/24644/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/24644/events","html_url":"https://github.com/rust-lang/rust/issues/24644","id":69698390,"number":24644,"title":"ICE: assertion failed: prev_const.is_none() || prev_const == Some(llconst)","user":{"login":"bytewiseand","id":4562291,"avatar_url":"https://avatars.githubusercontent.com/u/4562291?v=3","gravatar_id":"","url":"https://api.github.com/users/bytewiseand","html_url":"https://github.com/bytewiseand","followers_url":"https://api.github.com/users/bytewiseand/followers","following_url":"https://api.github.com/users/bytewiseand/following{/other_user}","gists_url":"https://api.github.com/users/bytewiseand/gists{/gist_id}","starred_url":"https://api.github.com/users/bytewiseand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytewiseand/subscriptions","organizations_url":"https://api.github.com/users/bytewiseand/orgs","repos_url":"https://api.github.com/users/bytewiseand/repos","events_url":"https://api.github.com/users/bytewiseand/events{/privacy}","received_events_url":"https://api.github.com/users/bytewiseand/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":4,"created_at":"2015-04-20T22:48:39Z","updated_at":"2015-05-27T17:18:00Z","closed_at":"2015-05-27T17:18:00Z","body":"## Code\r\n~~~rust\r\ntrait Trait {}\r\n\r\nstruct Bar;\r\nimpl Trait for Bar {}\r\n\r\nfn main() {\r\n    let x: &[&Trait] = &[{ &Bar }];\r\n}\r\n~~~\r\n\r\n## Output\r\n~~~\r\nmain.rs:7:9: 7:10 warning: unused variable: `x`, #[warn(unused_variables)] on by default\r\nmain.rs:7     let x: &[&Trait] = &[{ &Bar }];\r\n                  ^\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: 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 'assertion failed: prev_const.is_none() || prev_const == Some(llconst)', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/consts.rs:321\r\n\r\nstack backtrace:\r\n   1:        0x1054eb5cf - sys::backtrace::write::h9137c695ab290a14WRs\r\n   2:        0x1054f3b82 - panicking::on_panic::h0ae3cf09aff03bc05Pw\r\n   3:        0x1054a9d15 - rt::unwind::begin_unwind_inner::h36b4206cb80fb108Oxw\r\n   4:        0x102149fcf - rt::unwind::begin_unwind::h6767503471583286242\r\n   5:        0x1021c082c - trans::consts::const_expr::h1bbfa5560b941f32nvs\r\n   6:        0x102224922 - vec::Vec<T>.FromIterator<T>::from_iter::h7466739370638199104\r\n   7:        0x10221baea - trans::consts::const_expr_unadjusted::hd675727493ff08eezLs\r\n   8:        0x1021bfff7 - trans::consts::const_expr::h1bbfa5560b941f32nvs\r\n   9:        0x10221dc67 - trans::consts::const_expr_unadjusted::hd675727493ff08eezLs\r\n  10:        0x1021bfff7 - trans::consts::const_expr::h1bbfa5560b941f32nvs\r\n  11:        0x10221a9f9 - trans::consts::get_const_expr_as_global::h2f40511a988c5876yss\r\n  12:        0x10218f6ca - trans::expr::trans::h959669806b495bbffdA\r\n  13:        0x1022314e0 - trans::expr::trans_into::h43738e587d521f35W6z\r\n  14:        0x1022b4e21 - trans::_match::mk_binding_alloca::h2459388509959927399\r\n  15:        0x1021a09b9 - trans::base::init_local::h8acf9c70632535fdNVg\r\n  16:        0x1021b1453 - trans::controlflow::trans_block::hb872ebbfd195606cZ2u\r\n  17:        0x1021b0105 - trans::base::trans_closure::hbf7fcb6cfae5e775KCh\r\n  18:        0x1021b1d9e - trans::base::trans_fn::hb08e54207cb8d8e6sNh\r\n  19:        0x1021b5308 - trans::base::trans_item::h15647b08683789dbEbi\r\n  20:        0x1021c40f0 - trans::base::trans_crate::hdfbb43ad3281f84dE0i\r\n  21:        0x101c4fdde - driver::phase_4_translate_to_llvm::he9458af7df85ffb8lOa\r\n  22:        0x101c28344 - driver::compile_input::h3c162f55ed6be3a5Qba\r\n  23:        0x101cef853 - run_compiler::hae39edbb343296d3D4b\r\n  24:        0x101ced37a - boxed::F.FnBox<A>::call_box::h1927805197202631788\r\n  25:        0x101cec817 - rt::unwind::try::try_fn::h7355792964568869981\r\n  26:        0x10557d998 - rust_try_inner\r\n  27:        0x10557d985 - rust_try\r\n  28:        0x101cecaf0 - boxed::F.FnBox<A>::call_box::h2359980489235781969\r\n  29:        0x1054f26cd - sys::thread::create::thread_start::hfa406746e663ba1bNUv\r\n  30:     0x7fff81be3267 - _pthread_body\r\n  31:     0x7fff81be31e4 - _pthread_start\r\n\r\n\r\n~~~\r\n\r\n## Rust Version\r\n~~~\r\nrustc 1.0.0-nightly (1284be404 2015-04-18) (built 2015-04-17)\r\nbinary: rustc\r\ncommit-hash: 1284be4044420bc4c41767284ae26be61a38d331\r\ncommit-date: 2015-04-18\r\nbuild-date: 2015-04-17\r\nhost: x86_64-apple-darwin\r\nrelease: 1.0.0-nightly\r\n~~~"}}