{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28804","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28804/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28804/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28804/events","html_url":"https://github.com/rust-lang/rust/issues/28804","id":109409789,"number":28804,"title":"improper_ctypes ICE: ast_ty_to_ty_cache was incomplete after typeck!","user":{"login":"arcnmx","id":13426784,"avatar_url":"https://avatars.githubusercontent.com/u/13426784?v=3","gravatar_id":"","url":"https://api.github.com/users/arcnmx","html_url":"https://github.com/arcnmx","followers_url":"https://api.github.com/users/arcnmx/followers","following_url":"https://api.github.com/users/arcnmx/following{/other_user}","gists_url":"https://api.github.com/users/arcnmx/gists{/gist_id}","starred_url":"https://api.github.com/users/arcnmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcnmx/subscriptions","organizations_url":"https://api.github.com/users/arcnmx/orgs","repos_url":"https://api.github.com/users/arcnmx/repos","events_url":"https://api.github.com/users/arcnmx/events{/privacy}","received_events_url":"https://api.github.com/users/arcnmx/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":null,"milestone":null,"comments":1,"created_at":"2015-10-02T00:29:44Z","updated_at":"2015-10-02T12:58:27Z","closed_at":null,"body":"[playpen repro](http://is.gd/w76hjp)\r\n\r\n```rust\r\nextern {\r\n    fn f(_: &(::std::any::Any + Send));\r\n}\r\nfn main() { }\r\n```\r\n\r\n```\r\nerror: internal compiler error: unexpected panic\r\nthread 'rustc' panicked at 'ast_ty_to_ty_cache was incomplete after typeck!', ../src/librustc_lint/types.rs:391\r\nstack backtrace:\r\n   1:     0x560b9f816a0b - sys::backtrace::tracing::imp::write::hba31dba16b77db51Nlt\r\n   2:     0x560b9f81bc05 - panicking::log_panic::closure.39174\r\n   3:     0x560b9f81b685 - panicking::log_panic::hfa717843622c0734Zlx\r\n   4:     0x560b9f7f6d7b - sys_common::unwind::begin_unwind_inner::he7414b3062c61595eds\r\n   5:     0x560b9db11d1f - sys_common::unwind::begin_unwind::h15594441680360665897\r\n   6:     0x560b9db26772 - types::ast_ty_to_normalized::h5caed057635af03cGhc\r\n   7:     0x560b9db2b591 - types::ImproperCTypesVisitor<'a, 'tcx>.Visitor<'v>::visit_ty::ha6849becfc2fcdfb2sc\r\n   8:     0x560b9db2ba02 - types::ImproperCTypesVisitor<'a, 'tcx>.Visitor<'v>::visit_ty::ha6849becfc2fcdfb2sc\r\n   9:     0x560b9db2d994 - types::ImproperCTypes.LateLintPass::check_item::hc5ff5ab422fa7dabLuc\r\n  10:     0x560b9e43fe7c - lint::context::LintContext::with_lint_attrs::h4461143242089743573\r\n  11:     0x560b9e4449de - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h082d2fd73f1d33efuBy\r\n  12:     0x560b9e44046e - lint::context::LintContext::with_lint_attrs::h4461143242089743573\r\n  13:     0x560b9e4449de - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h082d2fd73f1d33efuBy\r\n  14:     0x560b9e44046e - lint::context::LintContext::with_lint_attrs::h4461143242089743573\r\n  15:     0x560b9e4449de - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h082d2fd73f1d33efuBy\r\n  16:     0x560b9e44046e - lint::context::LintContext::with_lint_attrs::h4461143242089743573\r\n  17:     0x560b9e4449de - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h082d2fd73f1d33efuBy\r\n  18:     0x560b9e45dfa1 - lint::context::check_crate::h0fdb0f40136207458sz\r\n  19:     0x560b9d9c4f09 - driver::phase_3_run_analysis_passes::closure.21553\r\n  20:     0x560b9d9a2e4c - middle::ty::context::ctxt<'tcx>::create_and_enter::h13487176223927967638\r\n  21:     0x560b9d99f125 - driver::phase_3_run_analysis_passes::h11393868287546209260\r\n  22:     0x560b9d977e37 - driver::compile_input::ha46944a2bbe53b7f0ba\r\n  23:     0x560b9db0209b - run_compiler::h8155732b0e5e09eb2qc\r\n  24:     0x560b9daff8ff - boxed::F.FnBox<A>::call_box::h2048703687297876069\r\n  25:     0x560b9daff074 - sys_common::unwind::try::try_fn::h15464389101487040097\r\n  26:     0x560b9f815eb8 - __rust_try\r\n  27:     0x560b9f80d196 - sys_common::unwind::try::inner_try::h21b6ca34e1ad0d87M9r\r\n  28:     0x560b9daff204 - boxed::F.FnBox<A>::call_box::h15456627145164089159\r\n  29:     0x560b9f81a773 - sys::thread::Thread::new::thread_start::h4828a71dbdf08936bEw\r\n  30:     0x7fba59f5b4a3 - start_thread\r\n  31:     0x7fba5936613c - clone\r\n  32:                0x0 - <unknown>\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/145014146","html_url":"https://github.com/rust-lang/rust/issues/28804#issuecomment-145014146","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/28804","id":145014146,"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-10-02T12:58:27Z","updated_at":"2015-10-02T12:58:27Z","body":"Why is the ctypes lint poking at HIR types by itself? Shouldn't it be looking the function type in the tcache?"}}