{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1150","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1150/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1150/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1150/events","html_url":"https://github.com/rust-lang/rfcs/pull/1150","id":84816100,"number":1150,"title":"RFC: Allow re-exporting associated items with `use`","user":{"login":"Gankro","id":1136864,"avatar_url":"https://avatars.githubusercontent.com/u/1136864?v=3","gravatar_id":"","url":"https://api.github.com/users/Gankro","html_url":"https://github.com/Gankro","followers_url":"https://api.github.com/users/Gankro/followers","following_url":"https://api.github.com/users/Gankro/following{/other_user}","gists_url":"https://api.github.com/users/Gankro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gankro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gankro/subscriptions","organizations_url":"https://api.github.com/users/Gankro/orgs","repos_url":"https://api.github.com/users/Gankro/repos","events_url":"https://api.github.com/users/Gankro/events{/privacy}","received_events_url":"https://api.github.com/users/Gankro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/final-comment-period","name":"final-comment-period","color":"207de5"},{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"Gankro","id":1136864,"avatar_url":"https://avatars.githubusercontent.com/u/1136864?v=3","gravatar_id":"","url":"https://api.github.com/users/Gankro","html_url":"https://github.com/Gankro","followers_url":"https://api.github.com/users/Gankro/followers","following_url":"https://api.github.com/users/Gankro/following{/other_user}","gists_url":"https://api.github.com/users/Gankro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gankro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gankro/subscriptions","organizations_url":"https://api.github.com/users/Gankro/orgs","repos_url":"https://api.github.com/users/Gankro/repos","events_url":"https://api.github.com/users/Gankro/events{/privacy}","received_events_url":"https://api.github.com/users/Gankro/received_events","type":"User","site_admin":false},"milestone":null,"comments":31,"created_at":"2015-06-03T23:27:37Z","updated_at":"2015-07-14T18:18:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1150","html_url":"https://github.com/rust-lang/rfcs/pull/1150","diff_url":"https://github.com/rust-lang/rfcs/pull/1150.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1150.patch"},"body":"Extend `use` to work in trait definitions and impl blocks for re-exporting associated\r\nitems under different names. This provides a clean way to rename items harmlessly, and\r\nprovides a more ergonomic way to provide the same functionality under different names\r\nwhen necessary to satisfy an API.\r\n\r\nThis enables\r\n\r\n```rust\r\ntrait Iterator {\r\n    fn len_hint(&self) -> (usize, Option<usize>) {\r\n        (0, None)\r\n    }\r\n\r\n    #[deprecated(\"renamed to len_hint\")]\r\n    use Self::len_hint as size_hint;\r\n}\r\n```\r\n\r\n\r\n[Rendered](https://github.com/Gankro/rfcs/blob/rename/text/0000-rename.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/121328793","html_url":"https://github.com/rust-lang/rfcs/pull/1150#issuecomment-121328793","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1150","id":121328793,"user":{"login":"Gankro","id":1136864,"avatar_url":"https://avatars.githubusercontent.com/u/1136864?v=3","gravatar_id":"","url":"https://api.github.com/users/Gankro","html_url":"https://github.com/Gankro","followers_url":"https://api.github.com/users/Gankro/followers","following_url":"https://api.github.com/users/Gankro/following{/other_user}","gists_url":"https://api.github.com/users/Gankro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gankro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gankro/subscriptions","organizations_url":"https://api.github.com/users/Gankro/orgs","repos_url":"https://api.github.com/users/Gankro/repos","events_url":"https://api.github.com/users/Gankro/events{/privacy}","received_events_url":"https://api.github.com/users/Gankro/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T18:18:23Z","updated_at":"2015-07-14T18:18:23Z","body":"Hmm... maybe I hallucinated that..."}}