{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/4786","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/4786/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/4786/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/4786/events","html_url":"https://github.com/rust-lang/rust/issues/4786","id":10620803,"number":4786,"title":"Pretty-print mode to replace glob imports with a precise list of names","user":{"login":"bstrie","id":865233,"avatar_url":"https://avatars.githubusercontent.com/u/865233?v=3","gravatar_id":"","url":"https://api.github.com/users/bstrie","html_url":"https://github.com/bstrie","followers_url":"https://api.github.com/users/bstrie/followers","following_url":"https://api.github.com/users/bstrie/following{/other_user}","gists_url":"https://api.github.com/users/bstrie/gists{/gist_id}","starred_url":"https://api.github.com/users/bstrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bstrie/subscriptions","organizations_url":"https://api.github.com/users/bstrie/orgs","repos_url":"https://api.github.com/users/bstrie/repos","events_url":"https://api.github.com/users/bstrie/events{/privacy}","received_events_url":"https://api.github.com/users/bstrie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-pretty","name":"A-pretty","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-resolve","name":"A-resolve","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-wishlist","name":"I-wishlist","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-02-04T19:05:04Z","updated_at":"2015-01-21T01:31:06Z","closed_at":"2015-01-21T01:31:06Z","body":"```\r\n13:58 < bstrie> is there a pretty-print mode to replace a glob import with a\r\n                precise list of names?\r\n13:59 <@pcwalton> bstrie: no unfortunately\r\n13:59 <@pcwalton> good idea though\r\n```\r\nSo if I have a file with this:\r\n```\r\nuse foo::*;\r\n```\r\n...and of all the things that `foo` provides, I only ever end up using `bar` and `baz`, then it should rewrite the import to:\r\n```\r\nuse foo::{bar, baz};\r\n```"}}