{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/22566","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/22566/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/22566/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/22566/events","html_url":"https://github.com/rust-lang/rust/issues/22566","id":58316129,"number":22566,"title":"Simplest possible rust-call function will ICE","user":{"login":"nagisa","id":679122,"avatar_url":"https://avatars.githubusercontent.com/u/679122?v=3","gravatar_id":"","url":"https://api.github.com/users/nagisa","html_url":"https://github.com/nagisa","followers_url":"https://api.github.com/users/nagisa/followers","following_url":"https://api.github.com/users/nagisa/following{/other_user}","gists_url":"https://api.github.com/users/nagisa/gists{/gist_id}","starred_url":"https://api.github.com/users/nagisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagisa/subscriptions","organizations_url":"https://api.github.com/users/nagisa/orgs","repos_url":"https://api.github.com/users/nagisa/repos","events_url":"https://api.github.com/users/nagisa/events{/privacy}","received_events_url":"https://api.github.com/users/nagisa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T06:41:56Z","updated_at":"2015-02-20T06:41:56Z","closed_at":null,"body":"```rust\r\nextern \"rust-call\" fn a() {}\r\nfn main(){}\r\n```\r\n\r\n```\r\nerror: internal compiler error: unimplemented foreign functions with RustCall ABI\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 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189\r\n\r\nstack backtrace:\r\n   1:     0x7fd4dcd2da60 - sys::backtrace::write::h17046f691c944fd6wlB\r\n   2:     0x7fd4dcd56650 - failure::on_fail::hc6163ed550dbd15faOK\r\n   3:     0x7fd4dcc9ce10 - rt::unwind::begin_unwind_inner::hf466231ca0fbfbbdvsK\r\n   4:     0x7fd4da0099c0 - rt::unwind::begin_unwind::h15994696547183619422\r\n   5:     0x7fd4da00a180 - diagnostic::Handler::bug::h1bc3ded4b9cf6157abF\r\n   6:     0x7fd4da00a280 - diagnostic::Handler::unimpl::h7925c715a3764a3cQbF\r\n   7:     0x7fd4dafdc570 - session::Session::unimpl::h9bfd0f79c5452bebDes\r\n   8:     0x7fd4dbab9a90 - trans::foreign::llvm_calling_convention::hf7ec188cc1fffae5BWB\r\n   9:     0x7fd4db988b30 - trans::base::get_item_val::hc88b3b1356c15164vkv\r\n  10:     0x7fd4db986410 - trans::base::trans_item::ha4ea07b91896bde9tPu\r\n  11:     0x7fd4dba750f0 - trans::base::trans_crate::hc435c9fdb6f30ff4NMv\r\n  12:     0x7fd4dd378250 - driver::phase_4_translate_to_llvm::hb02bd998f41b29a0wPa\r\n  13:     0x7fd4dd351170 - driver::compile_input::h91ff1ed16e22d05cEba\r\n  14:     0x7fd4dd424ea0 - run_compiler::h9c581f85e29a6b265bc\r\n  15:     0x7fd4dd423500 - thunk::F.Invoke<A, R>::invoke::h5155567596601403298\r\n  16:     0x7fd4dd4223f0 - rt::unwind::try::try_fn::h5629523784837248188\r\n  17:     0x7fd4dcdc2f20 - rust_try_inner\r\n  18:     0x7fd4dcdc2f10 - rust_try\r\n  19:     0x7fd4dd4226a0 - thunk::F.Invoke<A, R>::invoke::h7807062886684583533\r\n  20:     0x7fd4dcd42190 - sys::thread::thread_start::h57c9c75c73c301cbfVF\r\n  21:     0x7fd4d6ce42b0 - start_thread\r\n  22:     0x7fd4dc923249 - __clone\r\n  23:                0x0 - <unknown>\r\n```"}}