{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/25919","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/25919/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/25919/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/25919/events","html_url":"https://github.com/rust-lang/rust/issues/25919","id":82981585,"number":25919,"title":"Optimizer incorrectly removing part of the code?","user":{"login":"dpc","id":9209,"avatar_url":"https://avatars.githubusercontent.com/u/9209?v=3","gravatar_id":"","url":"https://api.github.com/users/dpc","html_url":"https://github.com/dpc","followers_url":"https://api.github.com/users/dpc/followers","following_url":"https://api.github.com/users/dpc/following{/other_user}","gists_url":"https://api.github.com/users/dpc/gists{/gist_id}","starred_url":"https://api.github.com/users/dpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpc/subscriptions","organizations_url":"https://api.github.com/users/dpc/orgs","repos_url":"https://api.github.com/users/dpc/repos","events_url":"https://api.github.com/users/dpc/events{/privacy}","received_events_url":"https://api.github.com/users/dpc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-31T03:20:43Z","updated_at":"2015-06-22T08:33:25Z","closed_at":"2015-06-11T07:22:54Z","body":"My code behaves differently in debug and release mode. In release mode pressing \"y\" to confirm exiting the game is going to be incorrectly ignored. From my investigation, it seems some part of the match expression is getting completely removed.\r\n\r\nThe affected code:\r\n\r\nhttps://github.com/dpc/rhex/blob/issue/src/ui/curses.rs#L1119\r\n\r\nUncommenting the `info!` on line 1119 makes the game generate correct code even in release mode.\r\n\r\n[futex:lab/rust]% rustc --version\r\nrustc 1.2.0-nightly (99c2f779d 2015-05-29) (built 2015-05-29)\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/114038873","html_url":"https://github.com/rust-lang/rust/issues/25919#issuecomment-114038873","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/25919","id":114038873,"user":{"login":"dpc","id":9209,"avatar_url":"https://avatars.githubusercontent.com/u/9209?v=3","gravatar_id":"","url":"https://api.github.com/users/dpc","html_url":"https://github.com/dpc","followers_url":"https://api.github.com/users/dpc/followers","following_url":"https://api.github.com/users/dpc/following{/other_user}","gists_url":"https://api.github.com/users/dpc/gists{/gist_id}","starred_url":"https://api.github.com/users/dpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpc/subscriptions","organizations_url":"https://api.github.com/users/dpc/orgs","repos_url":"https://api.github.com/users/dpc/repos","events_url":"https://api.github.com/users/dpc/events{/privacy}","received_events_url":"https://api.github.com/users/dpc/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T08:33:25Z","updated_at":"2015-06-22T08:33:25Z","body":"@rprichard : You're awesome!"}}