{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/877","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/877/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/877/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/877/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/877","id":150697634,"number":877,"title":"Unused lifetime type parameters","user":{"login":"regexident","id":138017,"avatar_url":"https://avatars.githubusercontent.com/u/138017?v=3","gravatar_id":"","url":"https://api.github.com/users/regexident","html_url":"https://github.com/regexident","followers_url":"https://api.github.com/users/regexident/followers","following_url":"https://api.github.com/users/regexident/following{/other_user}","gists_url":"https://api.github.com/users/regexident/gists{/gist_id}","starred_url":"https://api.github.com/users/regexident/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regexident/subscriptions","organizations_url":"https://api.github.com/users/regexident/orgs","repos_url":"https://api.github.com/users/regexident/repos","events_url":"https://api.github.com/users/regexident/events{/privacy}","received_events_url":"https://api.github.com/users/regexident/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-24T20:45:40Z","updated_at":"2016-04-24T20:56:29Z","closed_at":null,"body":"Leaving an unused type parameter  …\r\n\r\n```rust\r\nstruct Foo;\r\n\r\nimpl<T> Foo {\r\n\tfn foo() {}\r\n}\r\n```\r\n\r\n… triggers the following error:\r\n\r\n    error: the type parameter `T` is not constrained\r\n    by the impl trait, self type, or predicates [E0207]\r\n\r\nLeaving an unused lifetime parameter however …\r\n\r\n```rust\r\nstruct Bar;\r\n\r\nimpl<'a> Bar {\r\n\tfn bar() {}\r\n}\r\n```\r\n\r\ndoes not.\r\n\r\nWe should lint these, shouldn't we? Or should I file a rustc bug report?"},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/214035436","html_url":"https://github.com/Manishearth/rust-clippy/issues/877#issuecomment-214035436","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/877","id":214035436,"user":{"login":"llogiq","id":4200835,"avatar_url":"https://avatars.githubusercontent.com/u/4200835?v=3","gravatar_id":"","url":"https://api.github.com/users/llogiq","html_url":"https://github.com/llogiq","followers_url":"https://api.github.com/users/llogiq/followers","following_url":"https://api.github.com/users/llogiq/following{/other_user}","gists_url":"https://api.github.com/users/llogiq/gists{/gist_id}","starred_url":"https://api.github.com/users/llogiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llogiq/subscriptions","organizations_url":"https://api.github.com/users/llogiq/orgs","repos_url":"https://api.github.com/users/llogiq/repos","events_url":"https://api.github.com/users/llogiq/events{/privacy}","received_events_url":"https://api.github.com/users/llogiq/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T20:56:29Z","updated_at":"2016-04-24T20:56:29Z","body":"There's the `unused_lifetimes` lint. Doesn't that catch your case?"}}