{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/162","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/162/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/162/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/162","id":100791850,"number":162,"title":"Elision lint should bail if we're using named lifetimes defined *outside* the function","user":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-13T14:54:24Z","updated_at":"2015-08-13T15:03:46Z","closed_at":null,"body":"This is for methods which use named lifetimes which are defined elsewhere (not in `fn foo<'a, 'b>(..`), e.g. https://github.com/Manishearth/rust-clippy/blob/master/src/loops.rs#L106\r\n\r\nI think when we encounter such lifetimes we can only bail, because the lifetime may or may not be connected with the self type and elision can't do much anyway.\r\n\r\ncc @birkenfeld "},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/130722757","html_url":"https://github.com/Manishearth/rust-clippy/issues/162#issuecomment-130722757","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/162","id":130722757,"user":{"login":"birkenfeld","id":144359,"avatar_url":"https://avatars.githubusercontent.com/u/144359?v=3","gravatar_id":"","url":"https://api.github.com/users/birkenfeld","html_url":"https://github.com/birkenfeld","followers_url":"https://api.github.com/users/birkenfeld/followers","following_url":"https://api.github.com/users/birkenfeld/following{/other_user}","gists_url":"https://api.github.com/users/birkenfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/birkenfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birkenfeld/subscriptions","organizations_url":"https://api.github.com/users/birkenfeld/orgs","repos_url":"https://api.github.com/users/birkenfeld/repos","events_url":"https://api.github.com/users/birkenfeld/events{/privacy}","received_events_url":"https://api.github.com/users/birkenfeld/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T15:03:46Z","updated_at":"2015-08-13T15:03:46Z","body":"Good point. Sounds easy enough..."}}