{"action":"opened","issue":{"url":"https://api.github.com/repos/nrc/rustfmt/issues/383","labels_url":"https://api.github.com/repos/nrc/rustfmt/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/nrc/rustfmt/issues/383/comments","events_url":"https://api.github.com/repos/nrc/rustfmt/issues/383/events","html_url":"https://github.com/nrc/rustfmt/issues/383","id":108556107,"number":383,"title":"Arithmetic overflow on funky match","user":{"login":"marcusklaas","id":1255413,"avatar_url":"https://avatars.githubusercontent.com/u/1255413?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusklaas","html_url":"https://github.com/marcusklaas","followers_url":"https://api.github.com/users/marcusklaas/followers","following_url":"https://api.github.com/users/marcusklaas/following{/other_user}","gists_url":"https://api.github.com/users/marcusklaas/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusklaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusklaas/subscriptions","organizations_url":"https://api.github.com/users/marcusklaas/orgs","repos_url":"https://api.github.com/users/marcusklaas/repos","events_url":"https://api.github.com/users/marcusklaas/events{/privacy}","received_events_url":"https://api.github.com/users/marcusklaas/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":0,"created_at":"2015-09-27T19:32:19Z","updated_at":"2015-09-27T19:32:19Z","closed_at":null,"body":"Source:\r\n```rust\r\nfn main() {\r\n    match resolution.last_private {LastImport{..} => false, _ => true};\r\n}\r\n```\r\nTrace:\r\n```\r\nthread '<main>' panicked at 'arithmetic operation overflowed', src/expr.rs:698\r\nstack backtrace:\r\n   1:     0x7f6500f74cb9 - sys::backtrace::tracing::imp::write::h28198b24b883cb513mt\r\n   2:     0x7f6500f3f70e - sys_common::unwind::begin_unwind_inner::h5f31fef7e87c4260Mds\r\n   3:     0x7f6500f401c8 - sys_common::unwind::begin_unwind_fmt::h9d82de06c1574152Scs\r\n   4:     0x7f6500f72a71 - rust_begin_unwind\r\n   5:     0x7f6500fbdc8f - panicking::panic_fmt::h07708241044a30f4wZK\r\n   6:     0x7f6500fb81c8 - panicking::panic::hdb39023a1677e0dc3XK\r\n   7:     0x7f6503033e7a - expr::rewrite_match_arm_comment::h57d1b52990e555b5ESf\r\n                        at src/expr.rs:698\r\n   8:     0x7f6503029308 - expr::rewrite_match::h7b4994e6c9105882MVf\r\n                        at src/expr.rs:781\r\n   9:     0x7f6502fc3da1 - expr::ast..Expr.Rewrite::rewrite::h8494bfee97115902m7e\r\n                        at src/expr.rs:124\r\n  10:     0x7f6502fc5229 - visitor::FmtVisitor<'a>.visit..Visitor<'v>::visit_stmt::h986b37ee16fb7df5N0b\r\n                        at src/visitor.rs:69\r\n  11:     0x7f6502fcb7ef - visitor::FmtVisitor<'a>.visit..Visitor<'v>::visit_block::h638c11a7178ddaf7N2b\r\n                        at src/visitor.rs:106\r\n  12:     0x7f6502fcca74 - visitor::FmtVisitor<'a>.visit..Visitor<'v>::visit_fn::h628d98c187007716K6b\r\n                        at src/visitor.rs:170\r\n  13:     0x7f6502fcdbfb - visit::walk_item::h464253347014787160\r\n                        at ../src/libsyntax/visit.rs:238\r\n  14:     0x7f6502fcaf99 - visitor::FmtVisitor<'a>.visit..Visitor<'v>::visit_item::h1cfa1b08ac80fac0X8b\r\n                        at src/visitor.rs:227\r\n  15:     0x7f6502fcec1f - visit::walk_mod::h13733026658112016840\r\n                        at ../src/libsyntax/visit.rs:154\r\n  16:     0x7f6502fd64ac - visitor::FmtVisitor<'a>::format_separate_mod::hfa42e72ec9b290a2tkc\r\n                        at src/visitor.rs:347\r\n  17:     0x7f65030a2e26 - fmt_ast::h08d9e1d207152a4eKUi\r\n                        at src/lib.rs:280\r\n  18:     0x7f65030b14fa - RustFmtCalls.CompilerCalls<'a>::build_controller::closure.27761\r\n                        at src/lib.rs:393\r\n  19:     0x7f6502948556 - driver::compile_input::h131ef51704cfa4d20ba\r\n  20:     0x7f6502ab24db - run_compiler::h22761df3513f062d3qc\r\n  21:     0x7f65030b1d3d - format::h4186fdd07198f001l5i\r\n                        at src/lib.rs:414\r\n  22:     0x7f65030b2e75 - run::h430da14ec37c2197a6i\r\n                        at src/lib.rs:426\r\n  23:     0x7f6502f754e2 - execute::hb61b147dfd66f681Hca\r\n                        at src/bin/rustfmt.rs:68\r\n  24:     0x7f6502f795e0 - main::hbe05312b2180e0250da\r\n                        at src/bin/rustfmt.rs:74\r\n  25:     0x7f6500f7ac34 - sys_common::unwind::try::try_fn::h2225041374617546782\r\n  26:     0x7f6500f728d8 - __rust_try\r\n  27:     0x7f6500f7a8cd - rt::lang_start::h33d9c1857b021c87nkx\r\n  28:     0x7f6502f7ac39 - main\r\n  29:     0x7f65005e7a3f - __libc_start_main\r\n  30:     0x7f6502f716c8 - _start\r\n  31:                0x0 - <unknown>\r\nAn unknown error occurred\r\n```\r\n"}}