{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28456","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28456/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28456/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28456/events","html_url":"https://github.com/rust-lang/rust/issues/28456","id":106908867,"number":28456,"title":"Meaningless `pub` lint.","user":{"login":"nixpulvis","id":715947,"avatar_url":"https://avatars.githubusercontent.com/u/715947?v=3","gravatar_id":"","url":"https://api.github.com/users/nixpulvis","html_url":"https://github.com/nixpulvis","followers_url":"https://api.github.com/users/nixpulvis/followers","following_url":"https://api.github.com/users/nixpulvis/following{/other_user}","gists_url":"https://api.github.com/users/nixpulvis/gists{/gist_id}","starred_url":"https://api.github.com/users/nixpulvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixpulvis/subscriptions","organizations_url":"https://api.github.com/users/nixpulvis/orgs","repos_url":"https://api.github.com/users/nixpulvis/repos","events_url":"https://api.github.com/users/nixpulvis/events{/privacy}","received_events_url":"https://api.github.com/users/nixpulvis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T04:04:30Z","updated_at":"2015-09-17T04:04:30Z","closed_at":null,"body":"I would expect a lint warning about `pub` declarations which aren't needed or meaningful.\r\n\r\n```rust\r\nmod a {\r\n    struct A;\r\n    \r\n    impl A {\r\n        pub fn x() { }\r\n    }\r\n}\r\n```\r\n\r\nThis simple example would warn about a meaningless `pub` for the function `x`."}}