{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/29921","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/29921/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/29921/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/29921/events","html_url":"https://github.com/rust-lang/rust/issues/29921","id":117742028,"number":29921,"title":"inner module can import private items by name","user":{"login":"durka","id":47007,"avatar_url":"https://avatars.githubusercontent.com/u/47007?v=3","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T05:06:46Z","updated_at":"2015-11-19T05:14:45Z","closed_at":"2015-11-19T05:13:07Z","body":"This code [compiles](http://is.gd/jt3seM):\r\n\r\n```rust\r\nfn bar() {}\r\n\r\nmod inner {\r\n    //use super::*; // doesn't pick up bar\r\n    use super::bar; // ok\r\n    \r\n    pub fn foo() { bar(); }\r\n}\r\n\r\nfn main() { inner::foo(); }\r\n```\r\n\r\nIt seems like it shouldn't compile because `bar` is private. I found #4366 which seems to agree, but that was a long time ago."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/157953089","html_url":"https://github.com/rust-lang/rust/issues/29921#issuecomment-157953089","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/29921","id":157953089,"user":{"login":"durka","id":47007,"avatar_url":"https://avatars.githubusercontent.com/u/47007?v=3","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T05:14:45Z","updated_at":"2015-11-19T05:14:45Z","body":"You're right #4366 is the opposite. Wildcard imports are just whack, but we already knew that."}}