{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/700","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/700/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/700/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/700","id":135494583,"number":700,"title":"Panic in transmute.rs:33","user":{"login":"afck","id":7894725,"avatar_url":"https://avatars.githubusercontent.com/u/7894725?v=3","gravatar_id":"","url":"https://api.github.com/users/afck","html_url":"https://github.com/afck","followers_url":"https://api.github.com/users/afck/followers","following_url":"https://api.github.com/users/afck/following{/other_user}","gists_url":"https://api.github.com/users/afck/gists{/gist_id}","starred_url":"https://api.github.com/users/afck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afck/subscriptions","organizations_url":"https://api.github.com/users/afck/orgs","repos_url":"https://api.github.com/users/afck/repos","events_url":"https://api.github.com/users/afck/events{/privacy}","received_events_url":"https://api.github.com/users/afck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-22T18:02:36Z","updated_at":"2016-02-22T18:38:31Z","closed_at":null,"body":"Clippy panics in transmute.rs:33 with today's Rust nightly when I run it on https://github.com/afck/routing/commit/28da2d60af947c7924cc5f4c3fed09b756d26a7e:\r\n```\r\n$ RUST_BACKTRACE=1 cargo test --no-run --features clippy\r\n   Compiling routing v0.6.3 (file:///home/andreas/git/routing)\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\nthread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/andreas/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.43/src/transmute.rs:33\r\nstack backtrace:\r\n   1:     0x7f30eab03bc0 - sys::backtrace::tracing::imp::write::hb39adb9cc1dae4a9Nyu\r\n   2:     0x7f30eab0cf2b - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.43683\r\n   3:     0x7f30eab0ca83 - panicking::default_handler::hced6c0d85eb2cb83bez\r\n   4:     0x7f30eaad55fc - sys_common::unwind::begin_unwind_inner::hafb014b2dc8828386mt\r\n   5:     0x7f30eaad6098 - sys_common::unwind::begin_unwind_fmt::hd671b811c60b4ff4cmt\r\n   6:     0x7f30eab01691 - rust_begin_unwind\r\n   7:     0x7f30eab5415f - panicking::panic_fmt::h38cc775b27fedfe3yZL\r\n   8:     0x7f30eab54342 - panicking::panic_bounds_check::h74dcd407bdd3e0b8EYL\r\n   9:     0x7f30dc9cb19e - transmute::UselessTransmute.LateLintPass::check_expr::hc601156b2617405co2k\r\n                        at /home/andreas/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.43/src/transmute.rs:33\r\n  10:     0x7f30e7fa314a - lint::context::LintContext::with_lint_attrs::h380019028915481644\r\n  11:     0x7f30e7fa47cb - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_stmt::h08e6ba19683690b35cv\r\n  12:     0x7f30e7fa3eae - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_block::h432b9e92e3858b0d9lv\r\n  13:     0x7f30e7f9eeda - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_fn::h7b178fed5cfd4cbdOdv\r\n  14:     0x7f30e7f9adee - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_item::h91102ff40201017eW8u\r\n  15:     0x7f30e7f9f17b - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h934956317d2c89a9nkv\r\n  16:     0x7f30e7fbffea - lint::context::check_crate::ha9a780d15a42d7af15v\r\n  17:     0x7f30eb027de3 - driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::closure.28414\r\n  18:     0x7f30eb0221f5 - middle::ty::context::ctxt<'tcx>::create_and_enter::h2830587858154539181\r\n  19:     0x7f30eb01ed4f - driver::phase_3_run_analysis_passes::h15248650410224887609\r\n  20:     0x7f30eaff05c5 - driver::compile_input::h952463538ef70172Bca\r\n  21:     0x7f30eafe0917 - run_compiler::hcb7308fe894426e8HOc\r\n  22:     0x7f30eafde0c1 - sys_common::unwind::try::try_fn::h16635096110630877533\r\n  23:     0x7f30eab0161b - __rust_try\r\n  24:     0x7f30eaaf9bcd - sys_common::unwind::inner_try::hacd4193e6d9e10788jt\r\n  25:     0x7f30eafde910 - boxed::F.FnBox<A>::call_box::h6111647763662046071\r\n  26:     0x7f30eab0b4f9 - sys::thread::Thread::new::thread_start::h42fba1e2d4e7a4bevby\r\n  27:     0x7f30e32920a3 - start_thread\r\n  28:     0x7f30ea78187c - clone\r\n  29:                0x0 - <unknown>\r\n\r\nBuild failed, waiting for other jobs to finish...\r\nCould not compile `routing`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```\r\nHere is an example on Travis: https://travis-ci.org/maidsafe/routing/jobs/111015551#L367"},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/187311194","html_url":"https://github.com/Manishearth/rust-clippy/issues/700#issuecomment-187311194","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/700","id":187311194,"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":"2016-02-22T18:38:31Z","updated_at":"2016-02-22T18:38:31Z","body":"match_def_path doesn't check that the lengths are the same :/"}}