{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31287","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31287/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31287/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31287/events","html_url":"https://github.com/rust-lang/rust/issues/31287","id":129793198,"number":31287,"title":"Pattern guard can consume value that is being matched","user":{"login":"tmiasko","id":13466935,"avatar_url":"https://avatars.githubusercontent.com/u/13466935?v=3","gravatar_id":"","url":"https://api.github.com/users/tmiasko","html_url":"https://github.com/tmiasko","followers_url":"https://api.github.com/users/tmiasko/followers","following_url":"https://api.github.com/users/tmiasko/following{/other_user}","gists_url":"https://api.github.com/users/tmiasko/gists{/gist_id}","starred_url":"https://api.github.com/users/tmiasko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmiasko/subscriptions","organizations_url":"https://api.github.com/users/tmiasko/orgs","repos_url":"https://api.github.com/users/tmiasko/repos","events_url":"https://api.github.com/users/tmiasko/events{/privacy}","received_events_url":"https://api.github.com/users/tmiasko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-crash","name":"I-crash","color":"e10c02"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-nominated","name":"I-nominated","color":"e10c02"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-unsound","name":"I-unsound","color":"e11d21"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/P-high","name":"P-high","color":"eb6420"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-lang","name":"T-lang","color":"bfd4f2"}],"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},"assignees":[{"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":10,"created_at":"2016-01-29T15:17:01Z","updated_at":"2016-07-14T16:08:30Z","closed_at":null,"body":"Following compiles, and crashes when trying to print moved from value:\r\n\r\n```rust\r\nfn main() {\r\n    let a = Some(\"...\".to_owned());\r\n    let b = match a {\r\n        Some(_) if { drop(a); false } => None,\r\n        x                             => x,\r\n    };\r\n    println!(\"{:?}\", b);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/232712410","html_url":"https://github.com/rust-lang/rust/issues/31287#issuecomment-232712410","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/31287","id":232712410,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T16:08:29Z","updated_at":"2016-07-14T16:08:29Z","body":"As an update, still segfaults both on normal and MIR trans (example above)"}}
{"actor":{"display_login":"alexcrichton"}}