{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1501","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1501/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1501/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1501/events","html_url":"https://github.com/Manishearth/rust-clippy/pull/1501","id":204637889,"number":1501,"title":"Types borrow box","user":{"login":"scott-linder","id":5913908,"avatar_url":"https://avatars.githubusercontent.com/u/5913908?v=3","gravatar_id":"","url":"https://api.github.com/users/scott-linder","html_url":"https://github.com/scott-linder","followers_url":"https://api.github.com/users/scott-linder/followers","following_url":"https://api.github.com/users/scott-linder/following{/other_user}","gists_url":"https://api.github.com/users/scott-linder/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-linder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-linder/subscriptions","organizations_url":"https://api.github.com/users/scott-linder/orgs","repos_url":"https://api.github.com/users/scott-linder/repos","events_url":"https://api.github.com/users/scott-linder/events{/privacy}","received_events_url":"https://api.github.com/users/scott-linder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-01T16:45:34Z","updated_at":"2017-02-04T08:09:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/pulls/1501","html_url":"https://github.com/Manishearth/rust-clippy/pull/1501","diff_url":"https://github.com/Manishearth/rust-clippy/pull/1501.diff","patch_url":"https://github.com/Manishearth/rust-clippy/pull/1501.patch"},"body":"Lint for #1480 to check for borrowed boxes"},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/277427714","html_url":"https://github.com/Manishearth/rust-clippy/pull/1501#issuecomment-277427714","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/1501","id":277427714,"user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars.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-02-04T08:09:11Z","updated_at":"2017-02-04T08:09:11Z","body":"> But neither is actually detected. Should I implement check_expr and check_impl_item to catch them?\r\n\r\nI think for the first it is `check_local`. You need to be careful not to break the other lints, but there should be tests for those. Maybe add a boolean parameter to the `check_ty` function which decides whether it's called from one of the current functions or one of the new ones."}}
{"actor":{"display_login":"oli-obk"}}