{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/26511","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/26511/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/26511/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/26511/events","html_url":"https://github.com/rust-lang/rust/issues/26511","id":90229588,"number":26511,"title":"Compiler panic","user":{"login":"Xazzzi","id":1200201,"avatar_url":"https://avatars.githubusercontent.com/u/1200201?v=3","gravatar_id":"","url":"https://api.github.com/users/Xazzzi","html_url":"https://github.com/Xazzzi","followers_url":"https://api.github.com/users/Xazzzi/followers","following_url":"https://api.github.com/users/Xazzzi/following{/other_user}","gists_url":"https://api.github.com/users/Xazzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/Xazzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xazzzi/subscriptions","organizations_url":"https://api.github.com/users/Xazzzi/orgs","repos_url":"https://api.github.com/users/Xazzzi/repos","events_url":"https://api.github.com/users/Xazzzi/events{/privacy}","received_events_url":"https://api.github.com/users/Xazzzi/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":2,"created_at":"2015-06-22T22:29:00Z","updated_at":"2015-06-23T13:08:56Z","closed_at":"2015-06-23T13:08:56Z","body":"I'm new to rust, be nice to me ;)\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\n```\r\nI tried this code:\r\n```\r\nuse std::sync::mpsc::channel;\r\nuse websocket::{Server,Sender};\r\nlet (tx,rx) = channel::<Box<Sender<_>>>();\r\n```\r\nI expected the channel for passing boxed sendes around to be created, or at least some meaningful error from compiler telling me why what i'm trying to do here is impossible.\r\n\r\nInstead, this happened:\r\n```\r\nsrc/main.rs:7:19: 7:46 error: internal compiler error: cat_expr Errd\r\nsrc/main.rs:7     let (tx,rx) = channel::<Box<Sender<_>>>();\r\n```\r\n\r\n## Meta\r\n\r\n`rustc --version --verbose`:\r\n```\r\nrustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)\r\nbinary: rustc\r\ncommit-hash: a59de37e99060162a2674e3ff45409ac73595c0e\r\ncommit-date: 2015-05-13\r\nbuild-date: 2015-05-14\r\nhost: x86_64-unknown-linux-gnu\r\nrelease: 1.0.0\r\n```\r\n\r\nBacktrace:\r\n```\r\nstack backtrace:\r\n   1:     0x7fc40ecc3449 - sys::backtrace::write::hbc46dc0cfb3b9537d4r\r\n   2:     0x7fc40eccb156 - panicking::on_panic::h74d3c14d86c58ac8jrw\r\n   3:     0x7fc40ec8e462 - rt::unwind::begin_unwind_inner::h382cea404b11eb00t6v\r\n   4:     0x7fc40c2593fd - rt::unwind::begin_unwind::h6365792021826883910\r\n   5:     0x7fc40c259392 - diagnostic::SpanHandler::span_bug::h15654069e1b4ed62EqB\r\n   6:     0x7fc40caf5083 - session::Session::span_bug::h51bebfa939964985ODq\r\n   7:     0x7fc40da9adad - check::regionck::visit_expr::hea39a9609363990fYhd\r\n   8:     0x7fc40da9b247 - check::regionck::visit_local::ha27d5c7a055a259e3ed\r\n   9:     0x7fc40da97d48 - check::regionck::Rcx<'a, 'tcx>::visit_fn_body::hf2385fd1ec2e2fd3pUc\r\n  10:     0x7fc40db11896 - check::check_bare_fn::h1ca89f422d965ecetwn\r\n  11:     0x7fc40db0f6f2 - check::CheckItemBodiesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_item::h29ccc99d00d684a7wtn\r\n  12:     0x7fc40dbd369a - check_crate::closure.38028\r\n  13:     0x7fc40dbcea30 - check_crate::h22dcd95e17a2d96dXcC\r\n  14:     0x7fc40f207cc8 - driver::phase_3_run_analysis_passes::h43926ceca86caa9fnGa\r\n  15:     0x7fc40f1e8dc5 - driver::compile_input::hb78754f2f33c01efQba\r\n  16:     0x7fc40f2aa4d1 - run_compiler::h258d36d5501c1cdfz4b\r\n  17:     0x7fc40f2a8122 - boxed::F.FnBox<A>::call_box::h7239693171334256553\r\n  18:     0x7fc40f2a7659 - rt::unwind::try::try_fn::h14329119008520845439\r\n  19:     0x7fc40ed3dac8 - rust_try_inner\r\n  20:     0x7fc40ed3dab5 - rust_try\r\n  21:     0x7fc40f2a7908 - boxed::F.FnBox<A>::call_box::h17332056298259451807\r\n  22:     0x7fc40ecca041 - sys::thread::create::thread_start::h490278b5c3c0b49faqv\r\n  23:     0x7fc40954c181 - start_thread\r\n  24:     0x7fc40e91447c - __clone\r\n  25:                0x0 - <unknown>\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/114494597","html_url":"https://github.com/rust-lang/rust/issues/26511#issuecomment-114494597","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/26511","id":114494597,"user":{"login":"arielb1","id":1830974,"avatar_url":"https://avatars.githubusercontent.com/u/1830974?v=3","gravatar_id":"","url":"https://api.github.com/users/arielb1","html_url":"https://github.com/arielb1","followers_url":"https://api.github.com/users/arielb1/followers","following_url":"https://api.github.com/users/arielb1/following{/other_user}","gists_url":"https://api.github.com/users/arielb1/gists{/gist_id}","starred_url":"https://api.github.com/users/arielb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arielb1/subscriptions","organizations_url":"https://api.github.com/users/arielb1/orgs","repos_url":"https://api.github.com/users/arielb1/repos","events_url":"https://api.github.com/users/arielb1/events{/privacy}","received_events_url":"https://api.github.com/users/arielb1/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T13:08:56Z","updated_at":"2015-06-23T13:08:56Z","body":"Duplicate of #22897 etc."}}