{"action":"created","issue":{"url":"https://api.github.com/repos/nrc/rustfmt/issues/514","labels_url":"https://api.github.com/repos/nrc/rustfmt/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/nrc/rustfmt/issues/514/comments","events_url":"https://api.github.com/repos/nrc/rustfmt/issues/514/events","html_url":"https://github.com/nrc/rustfmt/issues/514","id":112503057,"number":514,"title":"`internal-error: entered unreachable code` while formatting","user":{"login":"euclio","id":1372438,"avatar_url":"https://avatars.githubusercontent.com/u/1372438?v=3","gravatar_id":"","url":"https://api.github.com/users/euclio","html_url":"https://github.com/euclio","followers_url":"https://api.github.com/users/euclio/followers","following_url":"https://api.github.com/users/euclio/following{/other_user}","gists_url":"https://api.github.com/users/euclio/gists{/gist_id}","starred_url":"https://api.github.com/users/euclio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euclio/subscriptions","organizations_url":"https://api.github.com/users/euclio/orgs","repos_url":"https://api.github.com/users/euclio/repos","events_url":"https://api.github.com/users/euclio/events{/privacy}","received_events_url":"https://api.github.com/users/euclio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nrc/rustfmt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T03:03:54Z","updated_at":"2015-10-21T03:07:37Z","closed_at":null,"body":"Upon running `rustfmt` with no arguments or configuration on [this file](https://github.com/Hoverbear/rust-rosetta/blob/05e04dd0552c2b4540889206179947c799caeb01/src/2048.rs).\r\n\r\nBacktrace:\r\n```                                                                             \r\neuclio@apollo$ env RUST_BACKTRACE=1 cargo run -- 2048.rs\r\n     Running `target/debug/rustfmt 2048.rs`\r\nthread '<main>' panicked at 'internal error: entered unreachable code', src/visitor.rs:36\r\nstack backtrace:\r\n   1:     0x7f1d32a4bc30 - sys::backtrace::tracing::imp::write::hd35b30c9bc39e79ecet\r\n   2:     0x7f1d32a52505 - panicking::log_panic::_<closure>::closure.39375\r\n   3:     0x7f1d32a51f51 - panicking::log_panic::h858502af84f7e8dakex\r\n   4:     0x7f1d32a16b43 - sys_common::unwind::begin_unwind_inner::h3c451c8cff534e2ag7r\r\n   5:     0x5578088466c7 - sys_common::unwind::begin_unwind::begin_unwind::h13810267614759286113\r\n                        at ../src/libstd/sys/common/unwind/mod.rs:224\r\n   6:     0x55780886c8d5 - visitor::_<impl>::visit_expr::hcfcf61108228dfb0Fnd\r\n                        at /home/euclio/repos/rustfmt/<std macros>:3\r\n   7:     0x55780886fa0b - visit::walk_ty::walk_ty::h5675170167666038519\r\n                        at ../src/libsyntax/visit.rs:359\r\n   8:     0x55780886f76c - visit::Visitor::visit_ty::visit_ty::h2372553842394803057\r\n                        at ../src/libsyntax/visit.rs:69\r\n   9:     0x55780886f9da - visit::walk_ty::walk_ty::h5675170167666038519\r\n                        at ../src/libsyntax/visit.rs:358\r\n  10:     0x55780886f76c - visit::Visitor::visit_ty::visit_ty::h2372553842394803057\r\n                        at ../src/libsyntax/visit.rs:69\r\n  11:     0x55780887041d - visit::walk_fn_decl::walk_fn_decl::h1048286840031650434\r\n                        at ../src/libsyntax/visit.rs:534\r\n  12:     0x557808884885 - visit::walk_trait_item::walk_trait_item::h13134893299988294892\r\n                        at ../src/libsyntax/visit.rs:574\r\n  13:     0x557808880c1f - visitor::_<impl>::visit_trait_item::hcc6a6c25af555da8RBd\r\n                        at src/visitor.rs:281\r\n  14:     0x55780887bf4a - visit::walk_item::walk_item::h15196151891253916978\r\n                        at ../src/libsyntax/visit.rs:303\r\n  15:     0x5578088732e1 - visitor::_<impl>::visit_item::h5a63d53e5b6f4c42Kwd\r\n                        at src/visitor.rs:193\r\n  16:     0x55780887ccfe - visit::walk_mod::walk_mod::h15409637401976201925\r\n                        at ../src/libsyntax/visit.rs:176\r\n  17:     0x55780888b34c - visitor::_<impl>::format_separate_mod::h224eb710c00c1cb5LKd\r\n                        at src/visitor.rs:393\r\n  18:     0x55780898b93f - fmt_ast::h4afbc275b1f312c6kUk\r\n                        at src/lib.rs:302\r\n  19:     0x55780899a2ea - _<impl>::build_controller::_<closure>::closure.29669\r\n                        at src/lib.rs:415\r\n  20:     0x7f1d34349a0e - driver::compile_input::h5decbd8a607eb1ee7ba\r\n  21:     0x7f1d3449a1bb - run_compiler::hcc56773d59769f820pc\r\n  22:     0x55780899ab4d - format::had5590382981990ee3k\r\n                        at src/lib.rs:436\r\n  23:     0x55780899bd15 - run::h0a47677590cb466733k\r\n                        at src/lib.rs:448\r\n  24:     0x55780881185c - execute::ha02357fc43f76710Hca\r\n                        at src/bin/rustfmt.rs:68\r\n  25:     0x5578088145c0 - main::h5ca3068261bd1bc80da\r\n                        at src/bin/rustfmt.rs:74\r\n  26:     0x7f1d32a51c94 - sys_common::unwind::try::try_fn::h16605433926635505679\r\n  27:     0x7f1d32a49958 - __rust_try\r\n  28:     0x7f1d32a5192f - rt::lang_start::hf4afedf08032f197sbx\r\n  29:     0x557808815cd9 - main\r\n  30:     0x7f1d320fa60f - __libc_start_main\r\n  31:     0x55780880d8e8 - _start\r\n  32:                0x0 - <unknown>\r\nProcess didn't exit successfully: `target/debug/rustfmt 2048.rs` (exit code: 101)\r\n```"},"comment":{"url":"https://api.github.com/repos/nrc/rustfmt/issues/comments/149768829","html_url":"https://github.com/nrc/rustfmt/issues/514#issuecomment-149768829","issue_url":"https://api.github.com/repos/nrc/rustfmt/issues/514","id":149768829,"user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T03:07:37Z","updated_at":"2015-10-21T03:07:37Z","body":"I think this is a dup of #513"}}