{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/comments/30302144","id":30302144,"diff_hunk":"@@ -49,6 +49,88 @@ about what constitutes an Item declaration and what does not:\n http://doc.rust-lang.org/reference.html#statements\n \"##,\n \n+E0251: r##\"\n+Two items of the same name cannot be imported without rebinding one of the\n+items under a new local name.\n+\n+An example of this error:\n+\n+```\n+use foo::baz;\n+use bar::*; // error, do `use foo::baz as quux` instead on the previous line\n+\n+fn main() {}\n+\n+mod foo {\n+    pub struct baz;\n+}\n+\n+mod bar {\n+    pub mod baz {}\n+}\n+```\n+\"##,\n+\n+E0252: r##\"\n+Two items of the same name cannot be imported without rebinding one of the\n+items under a new local name.\n+\n+An example of this error:\n+\n+```\n+use foo::baz;\n+use bar::baz; // error, do `use bar::baz as quux` instead\n+\n+fn main() {}\n+\n+mod foo {\n+    pub struct baz;\n+}\n+\n+mod bar {\n+    pub mod baz {}\n+}\n+```\n+\"##,\n+\n+E0255: r##\"\n+You can't import a value whose name is the same as another value defined in the\n+module.\n+\n+An example of this error:\n+\n+```\n+use foo::FOO; // error, do `use foo::FOO as BAR` instead","path":"src/librustc_resolve/diagnostics.rs","position":55,"original_position":55,"commit_id":"06aef339f11091f178957350b5159081e7b4534a","original_commit_id":"06aef339f11091f178957350b5159081e7b4534a","user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"body":"Maybe this could be something like\r\n\r\n```rust\r\nuse bar::foo;\r\n\r\nfn foo() {}\r\n\r\nmod bar {\r\n     pub fn foo() {}\r\n}\r\n```\r\n\r\n(I just find the upper-case `FOO` slightly strange.)","created_at":"2015-05-14T07:15:55Z","updated_at":"2015-05-14T07:15:55Z","html_url":"https://github.com/rust-lang/rust/pull/25398#discussion_r30302144","pull_request_url":"https://api.github.com/repos/rust-lang/rust/pulls/25398","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments/30302144"},"html":{"href":"https://github.com/rust-lang/rust/pull/25398#discussion_r30302144"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/25398"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/25398","id":35399233,"html_url":"https://github.com/rust-lang/rust/pull/25398","diff_url":"https://github.com/rust-lang/rust/pull/25398.diff","patch_url":"https://github.com/rust-lang/rust/pull/25398.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/25398","number":25398,"state":"open","locked":false,"title":"Add 8 more error explanations.","user":{"login":"nham","id":546409,"avatar_url":"https://avatars.githubusercontent.com/u/546409?v=3","gravatar_id":"","url":"https://api.github.com/users/nham","html_url":"https://github.com/nham","followers_url":"https://api.github.com/users/nham/followers","following_url":"https://api.github.com/users/nham/following{/other_user}","gists_url":"https://api.github.com/users/nham/gists{/gist_id}","starred_url":"https://api.github.com/users/nham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nham/subscriptions","organizations_url":"https://api.github.com/users/nham/orgs","repos_url":"https://api.github.com/users/nham/repos","events_url":"https://api.github.com/users/nham/events{/privacy}","received_events_url":"https://api.github.com/users/nham/received_events","type":"User","site_admin":false},"body":"Adds explanations for E0053, E0066, E0069, E0251, E0252, E0255, E0256, E0368.\r\n\r\ncc #24407 ","created_at":"2015-05-14T07:11:06Z","updated_at":"2015-05-14T07:15:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1943ea55418c88586754466749be9e671796e07a","assignee":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rust/pulls/25398/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/25398/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/25398/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/06aef339f11091f178957350b5159081e7b4534a","head":{"label":"nham:E0066_E0069","ref":"E0066_E0069","sha":"06aef339f11091f178957350b5159081e7b4534a","user":{"login":"nham","id":546409,"avatar_url":"https://avatars.githubusercontent.com/u/546409?v=3","gravatar_id":"","url":"https://api.github.com/users/nham","html_url":"https://github.com/nham","followers_url":"https://api.github.com/users/nham/followers","following_url":"https://api.github.com/users/nham/following{/other_user}","gists_url":"https://api.github.com/users/nham/gists{/gist_id}","starred_url":"https://api.github.com/users/nham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nham/subscriptions","organizations_url":"https://api.github.com/users/nham/orgs","repos_url":"https://api.github.com/users/nham/repos","events_url":"https://api.github.com/users/nham/events{/privacy}","received_events_url":"https://api.github.com/users/nham/received_events","type":"User","site_admin":false},"repo":{"id":16223890,"name":"rust","full_name":"nham/rust","owner":{"login":"nham","id":546409,"avatar_url":"https://avatars.githubusercontent.com/u/546409?v=3","gravatar_id":"","url":"https://api.github.com/users/nham","html_url":"https://github.com/nham","followers_url":"https://api.github.com/users/nham/followers","following_url":"https://api.github.com/users/nham/following{/other_user}","gists_url":"https://api.github.com/users/nham/gists{/gist_id}","starred_url":"https://api.github.com/users/nham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nham/subscriptions","organizations_url":"https://api.github.com/users/nham/orgs","repos_url":"https://api.github.com/users/nham/repos","events_url":"https://api.github.com/users/nham/events{/privacy}","received_events_url":"https://api.github.com/users/nham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nham/rust","description":"a safe, concurrent, practical language","fork":true,"url":"https://api.github.com/repos/nham/rust","forks_url":"https://api.github.com/repos/nham/rust/forks","keys_url":"https://api.github.com/repos/nham/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nham/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nham/rust/teams","hooks_url":"https://api.github.com/repos/nham/rust/hooks","issue_events_url":"https://api.github.com/repos/nham/rust/issues/events{/number}","events_url":"https://api.github.com/repos/nham/rust/events","assignees_url":"https://api.github.com/repos/nham/rust/assignees{/user}","branches_url":"https://api.github.com/repos/nham/rust/branches{/branch}","tags_url":"https://api.github.com/repos/nham/rust/tags","blobs_url":"https://api.github.com/repos/nham/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nham/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nham/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/nham/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nham/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/nham/rust/languages","stargazers_url":"https://api.github.com/repos/nham/rust/stargazers","contributors_url":"https://api.github.com/repos/nham/rust/contributors","subscribers_url":"https://api.github.com/repos/nham/rust/subscribers","subscription_url":"https://api.github.com/repos/nham/rust/subscription","commits_url":"https://api.github.com/repos/nham/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/nham/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/nham/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/nham/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/nham/rust/contents/{+path}","compare_url":"https://api.github.com/repos/nham/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nham/rust/merges","archive_url":"https://api.github.com/repos/nham/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nham/rust/downloads","issues_url":"https://api.github.com/repos/nham/rust/issues{/number}","pulls_url":"https://api.github.com/repos/nham/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/nham/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/nham/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nham/rust/labels{/name}","releases_url":"https://api.github.com/repos/nham/rust/releases{/id}","created_at":"2014-01-25T03:24:48Z","updated_at":"2014-07-08T19:13:04Z","pushed_at":"2015-05-14T07:05:49Z","git_url":"git://github.com/nham/rust.git","ssh_url":"git@github.com:nham/rust.git","clone_url":"https://github.com/nham/rust.git","svn_url":"https://github.com/nham/rust","homepage":"http://www.rust-lang.org","size":288921,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"1b5b6390ba98577741261eef5961cc6e8b0075e1","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":724712,"name":"rust","full_name":"rust-lang/rust","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/rust","description":"a safe, concurrent, practical language","fork":false,"url":"https://api.github.com/repos/rust-lang/rust","forks_url":"https://api.github.com/repos/rust-lang/rust/forks","keys_url":"https://api.github.com/repos/rust-lang/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rust/teams","hooks_url":"https://api.github.com/repos/rust-lang/rust/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rust/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rust/events","assignees_url":"https://api.github.com/repos/rust-lang/rust/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rust/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rust/tags","blobs_url":"https://api.github.com/repos/rust-lang/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rust/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rust/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rust/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rust/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rust/subscription","commits_url":"https://api.github.com/repos/rust-lang/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/rust/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rust/merges","archive_url":"https://api.github.com/repos/rust-lang/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rust/downloads","issues_url":"https://api.github.com/repos/rust-lang/rust/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rust/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rust/releases{/id}","created_at":"2010-06-16T20:39:03Z","updated_at":"2015-05-14T06:19:50Z","pushed_at":"2015-05-14T07:15:53Z","git_url":"git://github.com/rust-lang/rust.git","ssh_url":"git@github.com:rust-lang/rust.git","clone_url":"https://github.com/rust-lang/rust.git","svn_url":"https://github.com/rust-lang/rust","homepage":"http://www.rust-lang.org","size":650899,"stargazers_count":10813,"watchers_count":10813,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2111,"mirror_url":null,"open_issues_count":2003,"forks":2111,"open_issues":2003,"watchers":10813,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/25398"},"html":{"href":"https://github.com/rust-lang/rust/pull/25398"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/25398"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/25398/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/25398/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/25398/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/06aef339f11091f178957350b5159081e7b4534a"}}}}