{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/20772","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/20772/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/20772/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/20772/events","html_url":"https://github.com/rust-lang/rust/issues/20772","id":53803486,"number":20772,"title":"ICE: Associated type referencing itself","user":{"login":"tobbebex","id":250614,"avatar_url":"https://avatars.githubusercontent.com/u/250614?v=3","gravatar_id":"","url":"https://api.github.com/users/tobbebex","html_url":"https://github.com/tobbebex","followers_url":"https://api.github.com/users/tobbebex/followers","following_url":"https://api.github.com/users/tobbebex/following{/other_user}","gists_url":"https://api.github.com/users/tobbebex/gists{/gist_id}","starred_url":"https://api.github.com/users/tobbebex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobbebex/subscriptions","organizations_url":"https://api.github.com/users/tobbebex/orgs","repos_url":"https://api.github.com/users/tobbebex/repos","events_url":"https://api.github.com/users/tobbebex/events{/privacy}","received_events_url":"https://api.github.com/users/tobbebex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-associated-items","name":"A-associated-items","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-08T21:29:58Z","updated_at":"2015-02-14T21:11:29Z","closed_at":null,"body":"    trait T : Iterator<Item=Self::Item>\r\n    {}\r\n\r\nCompiling the above (admittedly ill-typed) file will cause\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: http://doc.rust-lang.org/complement-bugr\r\neport.html\r\nnote: run with `RUST_BACKTRACE=1` for a backtrace\r\nthread 'rustc' panicked at 'assertion failed: did.krate != ast::LOCAL_CRATE', C:\r\n\\bot\\slave\\nightly-dist-rustc-win-64\\build\\src\\librustc\\middle\\ty.rs:5362\r\n\r\nstack backtrace:\r\n   1:         0x69bee9cd - sys::backtrace::write::hd40c6de25ef01e0bfjt\r\n   2:         0x69c01a32 - rt::unwind::register::hcb202fda23aef97aw7y\r\n   3:         0x69b834a7 - rt::unwind::begin_unwind_inner::h43ca250f1ae88b3e64y\r\n   4:           0x6a8bcc - middle::astencode::encode_inlined_item::h4b6b2c857184\r\n2bb1Jja\r\n   5:           0xa6541f - middle::ty::lookup_trait_def::ha89a0d2c5a879780Zv8\r\n   6:           0xa88c19 - middle::ty::predicates_for_trait_ref::he59b587e624291\r\n8d4w8\r\n   7:           0xa5b65b - middle::traits::util::Elaborator<'cx, 'tcx>.Iterator:\r\n:next::hcbe2c9744651548fo9T\r\n   8:           0xa62347 - middle::traits::util::Supertraits<'cx, 'tcx>.Iterator\r\n::next::h2e87d83ce16f061dZbU\r\n   9:         0x6d5f70bc - rscope::ShiftedRscope<'r>.RegionScope::anon_regions::\r\nh258921b49adee87bcYq\r\n  10:         0x6d5992f8 - astconv::ast_ty_to_ty::h09671105f6afe18cwes\r\n  11:         0x6d5ed3d8 - rscope::ShiftedRscope<'r>.RegionScope::anon_regions::\r\nh258921b49adee87bcYq\r\n  12:         0x6d5eb4c3 - rscope::ShiftedRscope<'r>.RegionScope::anon_regions::\r\nh258921b49adee87bcYq\r\n  13:         0x6d5ef7d1 - rscope::ShiftedRscope<'r>.RegionScope::anon_regions::\r\nh258921b49adee87bcYq\r\n  14:         0x6d5ee5a9 - rscope::ShiftedRscope<'r>.RegionScope::anon_regions::\r\nh258921b49adee87bcYq\r\n  15:         0x6d5ee071 - rscope::ShiftedRscope<'r>.RegionScope::anon_regions::\r\nh258921b49adee87bcYq\r\n  16:         0x6d62f749 - collect::CollectCtxt<'a, 'tcx>.AstConv<'tcx>::project\r\ned_ty::h5a3a931757c8bb85Gbt\r\n  17:         0x6d60b2a1 - collect::CollectCtxt<'a, 'tcx>.AstConv<'tcx>::get_ite\r\nm_type_scheme::hffebd1c9c5b2d6c3P8s\r\n  18:         0x6d606312 - collect::CollectTraitDefVisitor<'a, 'tcx>.visit..Visi\r\ntor<'v>::visit_item::h781513b01a393b7dP5s\r\n  19:         0x6d66274f - check_crate::h862e87e9f04b6e0cNrx\r\n  20:         0x6d6600b0 - check_crate::h862e87e9f04b6e0cNrx\r\n  21:         0x70b18b2f - driver::phase_3_run_analysis_passes::hf7b2b2080ba4334\r\n56va\r\n  22:         0x70b027ba - driver::compile_input::h45b30318e07c4cf6vba\r\n  23:         0x70bcaa1e - run::heefafb1ff7869308B4b\r\n  24:         0x70bc786a - run::heefafb1ff7869308B4b\r\n  25:         0x69c288fc - rust_try\r\n  26:         0x69c288d9 - rust_try\r\n  27:         0x70bc7fa9 - run::heefafb1ff7869308B4b\r\n  28:         0x69bf3457 - sys::tcp::TcpListener::bind::hfcf283b88d14d24bfTv\r\n  29:     0x7ffc65ad16ad - BaseThreadInitThunk\r\n```\r\n\r\nMy version is\r\n```\r\nrustc 1.0.0-nightly (ea6f65c5f 2015-01-06 19:47:08 +0000)\r\nbinary: rustc\r\ncommit-hash: ea6f65c5f1a3f84e010d2cef02a0160804e9567a\r\ncommit-date: 2015-01-06 19:47:08 +0000\r\nhost: x86_64-pc-windows-gnu\r\nrelease: 1.0.0-nightly\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/74392109","html_url":"https://github.com/rust-lang/rust/issues/20772#issuecomment-74392109","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/20772","id":74392109,"user":{"login":"bjz","id":695077,"avatar_url":"https://avatars.githubusercontent.com/u/695077?v=3","gravatar_id":"","url":"https://api.github.com/users/bjz","html_url":"https://github.com/bjz","followers_url":"https://api.github.com/users/bjz/followers","following_url":"https://api.github.com/users/bjz/following{/other_user}","gists_url":"https://api.github.com/users/bjz/gists{/gist_id}","starred_url":"https://api.github.com/users/bjz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjz/subscriptions","organizations_url":"https://api.github.com/users/bjz/orgs","repos_url":"https://api.github.com/users/bjz/repos","events_url":"https://api.github.com/users/bjz/events{/privacy}","received_events_url":"https://api.github.com/users/bjz/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T21:11:29Z","updated_at":"2015-02-14T21:11:29Z","body":"Yay!"}}