{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28586","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28586/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28586/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28586/events","html_url":"https://github.com/rust-lang/rust/issues/28586","id":107696152,"number":28586,"title":"ICE: impl Foo for [u8; usize::BYTES]","user":{"login":"benw","id":12386,"avatar_url":"https://avatars.githubusercontent.com/u/12386?v=3","gravatar_id":"","url":"https://api.github.com/users/benw","html_url":"https://github.com/benw","followers_url":"https://api.github.com/users/benw/followers","following_url":"https://api.github.com/users/benw/following{/other_user}","gists_url":"https://api.github.com/users/benw/gists{/gist_id}","starred_url":"https://api.github.com/users/benw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benw/subscriptions","organizations_url":"https://api.github.com/users/benw/orgs","repos_url":"https://api.github.com/users/benw/repos","events_url":"https://api.github.com/users/benw/events{/privacy}","received_events_url":"https://api.github.com/users/benw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T11:29:47Z","updated_at":"2015-09-22T11:29:47Z","closed_at":null,"body":"I tried this code:\r\n\r\n    pub trait Foo {}\r\n    impl Foo for [u8; usize::BYTES] {}\r\n\r\nI expected to see this happen: great success\r\n\r\nInstead, this happened: error: internal compiler error: unexpected panic\r\n\r\n## Meta\r\n\r\n`rustc --version --verbose`:\r\n\r\n    rustc 1.4.0-nightly (6873b9fee 2015-09-13)\r\n    binary: rustc\r\n    commit-hash: 6873b9fee4af732fe81d54fdcedbd31201e3edf0\r\n    commit-date: 2015-09-13\r\n    host: x86_64-apple-darwin\r\n    release: 1.4.0-nightly\r\n\r\n\r\nBacktrace:\r\n\r\n    error: internal compiler error: unexpected panic\r\n    note: the compiler unexpectedly panicked. this is a bug.\r\n    note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\n    thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefPrimTy(TyUint(usize)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:82\r\n\r\n    stack backtrace:\r\n       1:        0x1121128d0 - sys::backtrace::tracing::imp::write::heea627b667abca63Y3s\r\n       2:        0x11210fcfb - panicking::on_panic::hdbb29ca470ba8d91wSw\r\n       3:        0x1120da292 - sys_common::unwind::begin_unwind_inner::h96272d8b0ab240cfv6r\r\n       4:        0x1120dad6d - sys_common::unwind::begin_unwind_fmt::h9afcfd3cbded904aB5r\r\n       5:        0x10ed9d260 - middle::const_eval::eval_const_expr_partial::h09b300ea76947f73LTk\r\n       6:        0x10e87b052 - astconv::ast_ty_to_ty::hea6c277082e3ec36Hjx\r\n       7:        0x10e8d365b - collect::convert_item::had78e6f690b64d6668y\r\n       8:        0x10e8cf086 - collect::collect_item_types::h0cdd1ad21711c8b7Cky\r\n       9:        0x10e91b84d - check_crate::hec1ce520a39b9d455BE\r\n      10:        0x10e08f9ea - driver::phase_3_run_analysis_passes::closure.21862\r\n      11:        0x10e07162a - middle::ty::ctxt<'tcx>::create_and_enter::h16774090565533553846\r\n      12:        0x10e06ce35 - driver::phase_3_run_analysis_passes::h7058980529217618503\r\n      13:        0x10e04d825 - driver::compile_input::hb180f9b5439d25130ba\r\n      14:        0x10e1b22a0 - run_compiler::hed85d66f90e035a8qqc\r\n      15:        0x10e1afb99 - boxed::F.FnBox<A>::call_box::h2035540886510390739\r\n      16:        0x10e1af592 - sys_common::unwind::try::try_fn::h1377311635092239657\r\n      17:        0x11210f638 - __rust_try\r\n      18:        0x112103c60 - sys_common::unwind::try::inner_try::hcc9e69ddf677c559T2r\r\n      19:        0x10e1af742 - boxed::F.FnBox<A>::call_box::h6878960542759305751\r\n      20:        0x1121185dd - sys::thread::Thread::new::thread_start::h149e6b462b5fd2cfpqw\r\n      21:     0x7fff99141059 - _pthread_body\r\n      22:     0x7fff99140fd6 - _pthread_start\r\n"}}