{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/20542","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/20542/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/20542/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/20542/events","html_url":"https://github.com/rust-lang/rust/issues/20542","id":53352297,"number":20542,"title":"failed to find block with tag 7","user":{"login":"rrichardson","id":124171,"avatar_url":"https://avatars.githubusercontent.com/u/124171?v=3","gravatar_id":"","url":"https://api.github.com/users/rrichardson","html_url":"https://github.com/rrichardson","followers_url":"https://api.github.com/users/rrichardson/followers","following_url":"https://api.github.com/users/rrichardson/following{/other_user}","gists_url":"https://api.github.com/users/rrichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/rrichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrichardson/subscriptions","organizations_url":"https://api.github.com/users/rrichardson/orgs","repos_url":"https://api.github.com/users/rrichardson/repos","events_url":"https://api.github.com/users/rrichardson/events{/privacy}","received_events_url":"https://api.github.com/users/rrichardson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-metadata","name":"A-metadata","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":13,"created_at":"2015-01-04T23:06:42Z","updated_at":"2015-02-21T12:39:34Z","closed_at":null,"body":"I am assuming this has something to do with me trying to impl for a trait with associated types, because that's what I was changing.  I'll try to make a repro case, but in the mean time: \r\n\r\n```\r\nERROR:rbml::reader: failed to find block with tag 7\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-bugreport.html\r\nnote: run with `RUST_BACKTRACE=1` for a backtrace\r\nthread 'rustc' panicked at 'explicit panic', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librbml/lib.rs:253\r\n\r\nstack backtrace:\r\n   1:     0x7f55828182d0 - sys::backtrace::write::h8532e701ef86014f4it\r\n   2:     0x7f558283db00 - failure::on_fail::h7532e1f79d134d5dzvz\r\n   3:     0x7f55827a31c0 - rt::unwind::begin_unwind_inner::h97b151606151d62deaz\r\n   4:     0x7f557c316ac0 - rt::unwind::begin_unwind::h1843747829001292891\r\n   5:     0x7f557c3155c0 - reader::get_doc::h63836efa91f81d00VKa\r\n   6:     0x7f5580c08f40 - metadata::decoder::get_type::h1cb96cb089b860dbZmj\r\n   7:     0x7f5580bbd8c0 - metadata::csearch::get_type::h7b53968868e941ac4am\r\n   8:     0x7f5581f2c250 - collect::CrateCtxt<'a, 'tcx>.AstConv<'tcx>::get_item_type_scheme::ha0eb6bc4857d45c3m9s\r\n   9:     0x7f5581f46400 - astconv::ast_path_to_ty::h3768578112657990385\r\n  10:     0x7f5581f43200 - astconv::ast_ty_to_ty::unboxed_closure.36533\r\n  11:     0x7f5581feb6b0 - astconv::ast_ty_to_ty::h1817371328037270331\r\n  12:     0x7f5581fe3010 - collect::ty_generics::h3764166756383902774\r\n  13:     0x7f5581f2edd0 - collect::convert::ha082397a8ef1fe06tAt\r\n  14:     0x7f5581f2ab90 - visit::Visitor::visit_mod::h3305858018731920637\r\n  15:     0x7f5581f3c1c0 - visit::walk_item::h8703911783927424805\r\n  16:     0x7f5582030dd0 - check_crate::unboxed_closure.40065\r\n  17:     0x7f558202ec30 - check_crate::h19fb6dea5733566ajsx\r\n  18:     0x7f5582d69640 - driver::phase_3_run_analysis_passes::h46b1604d9f9f5633Tva\r\n  19:     0x7f5582d57ae0 - driver::compile_input::h68b8602933aad8d7wba\r\n  20:     0x7f5582e22eb0 - thunk::F.Invoke<A, R>::invoke::h18029802347644288836\r\n  21:     0x7f5582e21c60 - rt::unwind::try::try_fn::h6518866316425934196\r\n  22:     0x7f55828a4400 - rust_try_inner\r\n  23:     0x7f55828a43f0 - rust_try\r\n  24:     0x7f5582e21fb0 - thunk::F.Invoke<A, R>::invoke::h15513809553472565307\r\n  25:     0x7f5582829e40 - sys::thread::thread_start::h5ea7ba97235331d5a9v\r\n  26:     0x7f557ce780c0 - start_thread\r\n  27:     0x7f5582449ec9 - __clone\r\n  28:                0x0 - <unknown>\r\n\r\nCould not compile `net_stream`.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/75369935","html_url":"https://github.com/rust-lang/rust/issues/20542#issuecomment-75369935","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/20542","id":75369935,"user":{"login":"Machtan","id":5950744,"avatar_url":"https://avatars.githubusercontent.com/u/5950744?v=3","gravatar_id":"","url":"https://api.github.com/users/Machtan","html_url":"https://github.com/Machtan","followers_url":"https://api.github.com/users/Machtan/followers","following_url":"https://api.github.com/users/Machtan/following{/other_user}","gists_url":"https://api.github.com/users/Machtan/gists{/gist_id}","starred_url":"https://api.github.com/users/Machtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Machtan/subscriptions","organizations_url":"https://api.github.com/users/Machtan/orgs","repos_url":"https://api.github.com/users/Machtan/repos","events_url":"https://api.github.com/users/Machtan/events{/privacy}","received_events_url":"https://api.github.com/users/Machtan/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T12:39:34Z","updated_at":"2015-02-21T12:39:34Z","body":"I hit the same error today, while trying to use the member type of an iterator during implementation\r\n\r\n**Code:**\r\n```rust\r\nimpl <'a, 'b, R: Read> Iterator for SentenceSplitter<'a, R> {\r\n    type Item = Result<&'b str, io::CharsError>;\r\n    fn next(&mut self) -> Option<Iterator::Item> { // <--- Look Here\r\n    ...\r\n```\r\n\r\n**Specs:**\r\nMac OSX 10.10.2\r\nrustc 1.0.0-nightly (6c065fc8c 2015-02-17)\r\n\r\n**Trace:**\r\n$ rustc -v src/main.rs\r\nERROR:rbml::reader: failed to find block with tag 7\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-bugreport.html\r\nnote: run with `RUST_BACKTRACE=1` for a backtrace\r\nthread 'rustc' panicked at 'explicit panic', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librbml/lib.rs:265\r\n\r\nstack backtrace:\r\n   1:        0x1094ad7c3 - sys::backtrace::write::h758e31f43edeba51YoB\r\n   2:        0x1094db525 - panicking::on_panic::h64e08c3ac337d99aAGK\r\n   3:        0x10940cb28 - rt::unwind::begin_unwind_inner::hbe305651b0fb4548QnK\r\n   4:        0x1089502d4 - rt::unwind::begin_unwind::h5698792545242243771\r\n   5:        0x10894ed16 - reader::get_doc::ha1c23420b22cd8d2nLa\r\n   6:        0x1065e2178 - metadata::decoder::item_type::h7e27bbdc6ab713ffaVk\r\n   7:        0x1065f09f2 - metadata::decoder::get_type::hd57163946a2a093bk8k\r\n   8:        0x10642ba24 - middle::ty::lookup_item_type::ha234a934ce51e3e3J09\r\n   9:        0x105e47514 - collect::CollectCtxt<'a, 'tcx>.AstConv<'tcx>::get_item_type_scheme::hf324f4f35407fde7RNw\r\n  10:        0x105e3be27 - astconv::ast_path_to_ty::h0b70223d4e721d2ctmv\r\n  11:        0x105e407ba - astconv::ast_ty_to_ty::closure.34264\r\n  12:        0x105dd88eb - astconv::ast_ty_to_ty::h14964c7085bed8b2QOv\r\n  13:        0x105e3512d - astconv::ast_ty_arg_to_ty::hafc02e23104629e1vNv\r\n  14:        0x105e34cad - vec::Vec<T>.FromIterator<T>::from_iter::h15856981011048356859\r\n  15:        0x105e322ea - astconv::convert_angle_bracketed_parameters::ha699800d9dacac29eUu\r\n  16:        0x105dd7f00 - astconv::ast_path_substs_for_ty::h1a6e875c8f27d7a2QDu\r\n  17:        0x105e3bec7 - astconv::ast_path_to_ty::h0b70223d4e721d2ctmv\r\n  18:        0x105e407ba - astconv::ast_ty_to_ty::closure.34264\r\n  19:        0x105dd88eb - astconv::ast_ty_to_ty::h14964c7085bed8b2QOv\r\n  20:        0x105e35f55 - astconv::convert_ty_with_lifetime_elision::h0e33f760b7ba5a792Yu\r\n  21:        0x105e42ac4 - astconv::ty_of_method_or_bare_fn::h9efbb63832571dd0X8v\r\n  22:        0x105e41925 - astconv::ty_of_method::h5636c78d85f608a4j7v\r\n  23:        0x105e63f21 - collect::convert_methods::ty_of_method::h7550102eed8de4abuex\r\n  24:        0x105e50eab - collect::convert_item::h606a3b1e477705a4xix\r\n  25:        0x105e94c36 - check_crate::closure.35401\r\n  26:        0x105e92b3e - check_crate::h89428fcec6521323aMB\r\n  27:        0x1057fccc9 - driver::phase_3_run_analysis_passes::h82dac3f70eae32598Ga\r\n  28:        0x1057e16d1 - driver::compile_input::h5f42c7591ab1e8afEba\r\n  29:        0x1058bb284 - run_compiler::h569cf29d11ba11b9Rbc\r\n  30:        0x1058b8305 - thunk::F.Invoke<A, R>::invoke::h584465160991669811\r\n  31:        0x1058b6fa0 - rt::unwind::try::try_fn::h36519155281163913\r\n  32:        0x109555329 - rust_try_inner\r\n  33:        0x109555316 - rust_try\r\n  34:        0x1058b7699 - thunk::F.Invoke<A, R>::invoke::h10026663398983596708\r\n  35:        0x1094c3d13 - sys::thread::thread_start::h0953ffc55eda2123CWF\r\n  36:     0x7fff8b6ed268 - _pthread_body\r\n  37:     0x7fff8b6ed1e5 - _pthread_body"}}