{"action":"closed","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/471","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/471/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/471/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/471","id":118701648,"number":471,"title":"Warn about overlapping match arm","user":{"login":"antoyo","id":584972,"avatar_url":"https://avatars.githubusercontent.com/u/584972?v=3","gravatar_id":"","url":"https://api.github.com/users/antoyo","html_url":"https://github.com/antoyo","followers_url":"https://api.github.com/users/antoyo/followers","following_url":"https://api.github.com/users/antoyo/following{/other_user}","gists_url":"https://api.github.com/users/antoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/antoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoyo/subscriptions","organizations_url":"https://api.github.com/users/antoyo/orgs","repos_url":"https://api.github.com/users/antoyo/repos","events_url":"https://api.github.com/users/antoyo/events{/privacy}","received_events_url":"https://api.github.com/users/antoyo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/E-easy","name":"E-easy","color":"009800"},{"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/L-lint","name":"L-lint","color":"fef2c0"},{"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/T-AST","name":"T-AST","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T20:59:45Z","updated_at":"2016-01-02T20:07:56Z","closed_at":"2016-01-02T20:07:56Z","body":"Hello.\r\nIt would be nice to have a warning for the following code:\r\n\r\n```rust\r\nlet x = 5;\r\nmatch x {\r\n    1 ... 10 => println!(\"1 ... 10\"),\r\n    5 ... 15 => println!(\"5 ... 15\"),\r\n    _ => (),\r\n}\r\n```\r\n\r\nbecause the first two match arms are overlapping.\r\n\r\nThanks."}}