{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1804","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1804/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1804/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1804/events","html_url":"https://github.com/Manishearth/rust-clippy/pull/1804","id":232445417,"number":1804,"title":"fix never_loop","user":{"login":"camsteffen","id":5565418,"avatar_url":"https://avatars3.githubusercontent.com/u/5565418?v=3","gravatar_id":"","url":"https://api.github.com/users/camsteffen","html_url":"https://github.com/camsteffen","followers_url":"https://api.github.com/users/camsteffen/followers","following_url":"https://api.github.com/users/camsteffen/following{/other_user}","gists_url":"https://api.github.com/users/camsteffen/gists{/gist_id}","starred_url":"https://api.github.com/users/camsteffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camsteffen/subscriptions","organizations_url":"https://api.github.com/users/camsteffen/orgs","repos_url":"https://api.github.com/users/camsteffen/repos","events_url":"https://api.github.com/users/camsteffen/events{/privacy}","received_events_url":"https://api.github.com/users/camsteffen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-05-31T03:46:24Z","updated_at":"2017-06-12T06:09:32Z","closed_at":"2017-06-12T06:08:20Z","pull_request":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/pulls/1804","html_url":"https://github.com/Manishearth/rust-clippy/pull/1804","diff_url":"https://github.com/Manishearth/rust-clippy/pull/1804.diff","patch_url":"https://github.com/Manishearth/rust-clippy/pull/1804.patch"},"body":"Fixes https://github.com/Manishearth/rust-clippy/issues/1586.\r\n\r\nThis is my first time contributing to rust-clippy or even working with rust internals! Let me know if you can find any counterexamples or have any other feedback.\r\n\r\nThe logic essentially works like this...\r\n\r\n```\r\nfn never_loop() -> bool {\r\n    if the loop contains a ‘continue’ (this loop) {\r\n        false\r\n    } else if all branches contain ‘break’ or ‘return’ or ‘continue’ (outer loop) {\r\n        true\r\n    } else {\r\n        false\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/307697643","html_url":"https://github.com/Manishearth/rust-clippy/pull/1804#issuecomment-307697643","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1804","id":307697643,"user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars1.githubusercontent.com/u/332036?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"created_at":"2017-06-12T06:09:32Z","updated_at":"2017-06-12T06:09:32Z","body":"Yay! Thanks."}}
{"actor":{"display_login":"oli-obk"}}