{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28971","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28971/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28971/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28971/events","html_url":"https://github.com/rust-lang/rust/issues/28971","id":110879046,"number":28971,"title":"ICE after error in associated item resolution","user":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/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":"open","locked":false,"assignee":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-11T19:50:48Z","updated_at":"2015-10-11T20:49:30Z","closed_at":null,"body":"```\r\nenum Foo {\r\n    Bar(u8)\r\n}\r\nfn main(){\r\n    foo(|| {\r\n        match Foo::Bar(1) {\r\n            Foo::Baz(..) => (), //~ ERROR no associated\r\n            _ => (),\r\n        }\r\n    });\r\n}\r\n\r\nfn foo<F>(f: F) where F: FnMut() {\r\n    f();\r\n}\r\n```\r\n\r\non `rustc 1.5.0-nightly (9d3e79ad3 2015-10-10)` gives an ICE:\r\n\r\n```\r\n rustc on-the-rocks.rs \r\non-the-rocks.rs:7:13: 7:25 error: no associated item named `Baz` found for type `Foo` in the current scope\r\non-the-rocks.rs:7             Foo::Baz(..) => (), //~ ERROR no associated\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 'path not fully resolved: PathResolution { base_def: DefTy(DefId { krate: 0, node: DefIndex(4) => Foo }, true), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:83\r\n```\r\n\r\nI'm working on a fix."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/147244210","html_url":"https://github.com/rust-lang/rust/issues/28971#issuecomment-147244210","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/28971","id":147244210,"user":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T20:49:30Z","updated_at":"2015-10-11T20:49:30Z","body":"I tried to fix it [like so](https://github.com/rust-lang/rust/compare/master...Manishearth:ice-itembody?expand=1), but it didn't work.\r\n\r\nIt seems like both the error and the ICE originate from item body checking. Not sure where to make it abort."}}