{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/37995","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/37995/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/37995/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/37995/events","html_url":"https://github.com/rust-lang/rust/issues/37995","id":191655029,"number":37995,"title":"\"A non-empty glob must import something with the glob's visibility\" regression from stable/beta to nightly?","user":{"login":"utkarshkukreti","id":217126,"avatar_url":"https://avatars.githubusercontent.com/u/217126?v=3","gravatar_id":"","url":"https://api.github.com/users/utkarshkukreti","html_url":"https://github.com/utkarshkukreti","followers_url":"https://api.github.com/users/utkarshkukreti/followers","following_url":"https://api.github.com/users/utkarshkukreti/following{/other_user}","gists_url":"https://api.github.com/users/utkarshkukreti/gists{/gist_id}","starred_url":"https://api.github.com/users/utkarshkukreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkarshkukreti/subscriptions","organizations_url":"https://api.github.com/users/utkarshkukreti/orgs","repos_url":"https://api.github.com/users/utkarshkukreti/repos","events_url":"https://api.github.com/users/utkarshkukreti/events{/privacy}","received_events_url":"https://api.github.com/users/utkarshkukreti/received_events","type":"User","site_admin":false},"labels":[{"id":239393,"url":"https://api.github.com/repos/rust-lang/rust/labels/A-resolve","name":"A-resolve","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-25T09:10:51Z","updated_at":"2016-11-27T06:42:03Z","closed_at":null,"body":"The following program compiles on:\r\n\r\n* rustc 1.13.0 (2c6933acc 2016-11-07)\r\n* rustc 1.14.0-beta.2 (e627a2e6e 2016-11-16)\r\n\r\nbut does not compile on:\r\n\r\n* rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)\r\n\r\n```rust\r\nmod foo {\r\n  mod bar {\r\n    pub use super::*;\r\n  }\r\n}\r\n\r\nfn main() {}\r\n```\r\n\r\nError:\r\n\r\n```\r\nrustc 1.15.0-nightly (3bf2be9ce 2016-11-22)\r\nerror: A non-empty glob must import something with the glob's visibility\r\n --> <anon>:3:13\r\n  |\r\n3 |     pub use super::*;\r\n  |             ^^^^^^^^^\r\n\r\nerror: aborting due to previous error\r\n```\r\n\r\nTested both locally and on https://play.rust-lang.org/.\r\n\r\nI could not find any mention of this [here](https://github.com/rust-lang/rust/issues?q=is%3Aissue+%22non-empty%22+is%3Aopen) or [here](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20%22non-empty%22%20)."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/263105418","html_url":"https://github.com/rust-lang/rust/issues/37995#issuecomment-263105418","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/37995","id":263105418,"user":{"login":"utkarshkukreti","id":217126,"avatar_url":"https://avatars.githubusercontent.com/u/217126?v=3","gravatar_id":"","url":"https://api.github.com/users/utkarshkukreti","html_url":"https://github.com/utkarshkukreti","followers_url":"https://api.github.com/users/utkarshkukreti/followers","following_url":"https://api.github.com/users/utkarshkukreti/following{/other_user}","gists_url":"https://api.github.com/users/utkarshkukreti/gists{/gist_id}","starred_url":"https://api.github.com/users/utkarshkukreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkarshkukreti/subscriptions","organizations_url":"https://api.github.com/users/utkarshkukreti/orgs","repos_url":"https://api.github.com/users/utkarshkukreti/repos","events_url":"https://api.github.com/users/utkarshkukreti/events{/privacy}","received_events_url":"https://api.github.com/users/utkarshkukreti/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T06:42:03Z","updated_at":"2016-11-27T06:42:03Z","body":"Ah, I had used `pub` with `use super::*;` because the following code failed to compile previously (and still fails on Stable):\r\n\r\n```\r\nstruct A;\r\nmod foo {\r\n    use super::*;\r\n    mod bar {\r\n        use super::*;\r\n        fn a() -> A {\r\n            A\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nBut it looks like it does compile on the new Nightly now, so I'll just use that. Thanks @jseyfried!"}}
{"actor":{"display_login":"utkarshkukreti"}}