{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23066","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23066/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23066/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23066/events","html_url":"https://github.com/rust-lang/rust/pull/23066","id":59942700,"number":23066,"title":"trans: Add early-out when translating unreachable controlflow expressions.","user":{"login":"michaelwoerister","id":1825894,"avatar_url":"https://avatars.githubusercontent.com/u/1825894?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelwoerister","html_url":"https://github.com/michaelwoerister","followers_url":"https://api.github.com/users/michaelwoerister/followers","following_url":"https://api.github.com/users/michaelwoerister/following{/other_user}","gists_url":"https://api.github.com/users/michaelwoerister/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelwoerister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelwoerister/subscriptions","organizations_url":"https://api.github.com/users/michaelwoerister/orgs","repos_url":"https://api.github.com/users/michaelwoerister/repos","events_url":"https://api.github.com/users/michaelwoerister/events{/privacy}","received_events_url":"https://api.github.com/users/michaelwoerister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-03-05T12:03:36Z","updated_at":"2015-04-01T13:44:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/23066","html_url":"https://github.com/rust-lang/rust/pull/23066","diff_url":"https://github.com/rust-lang/rust/pull/23066.diff","patch_url":"https://github.com/rust-lang/rust/pull/23066.patch"},"body":"This PR solves #21559 by making sure that unreachable if-expressions are not further translated.\r\n\r\nCould someone who knows their way around `trans` take a look at the changes in `controlflow.rs`? I'm not sure if any other code relies on any side-effects of translating unreachable things.\r\n\r\ncc @nikomatsakis @nrc @eddyb"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/88486045","html_url":"https://github.com/rust-lang/rust/pull/23066#issuecomment-88486045","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/23066","id":88486045,"user":{"login":"bors","id":3372342,"avatar_url":"https://avatars.githubusercontent.com/u/3372342?v=3","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T13:44:17Z","updated_at":"2015-04-01T13:44:17Z","body":":pushpin: Commit e05c2f8 has been approved by `pnkfelix`\n\n<!-- @bors r=pnkfelix e05c2f80da3bf538c045d0682426a25b1c4b862b -->"}}