{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/comments/62800745","id":62800745,"diff_hunk":"@@ -3284,6 +3284,82 @@ impl Baz for Bar { } // Note: This is OK\n ```\n \"##,\n \n+E0374: r##\"\n+The trait `CoerceUnsized` may only be implemented for a coercion between\n+structures with one field being coerced, none were found. The structure you\n+are trying to implement `CoerceUnsized` for doesn't have any Unsized fields\n+so it doesn't need CoerceUnsized.\n+\n+Example:\n+\n+```compile_fail\n+#![feature(coerce_unsized)]\n+struct Foo<T> {\n+    a: i32,\n+}\n+\n+// error: Struct `Foo` has no unsized fields that need `CoerceUnsized`.\n+impl<T, U> CoerceUnsized<Foo<U>> for Foo<T> {}\n+```\n+\n+`CoerceUnsized` is used to coerce one unsized structure into another. If the\n+structure doesn't have any unsized fields, it's not an unsized structure\n+and can use regular type coercion instead.\n+\"##,\n+\n+E0375: r##\"\n+The trait `CoerceUnsized` may only be implemented for a coercion between\n+structures with one field being coerced, but multiple fields need coercions.\n+The structure you are trying to implement `CoerceUnsized` for has more than","path":"src/librustc_typeck/diagnostics.rs","position":30,"original_position":30,"commit_id":"6b1018fcbc7425a072dd63c6997f9b4fed82ac82","original_commit_id":"6b1018fcbc7425a072dd63c6997f9b4fed82ac82","user":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars.githubusercontent.com/u/3050060?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"body":"He certainly rewrote this part.","created_at":"2016-05-11T07:10:48Z","updated_at":"2016-05-11T07:10:48Z","html_url":"https://github.com/rust-lang/rust/pull/33415#discussion_r62800745","pull_request_url":"https://api.github.com/repos/rust-lang/rust/pulls/33415","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments/62800745"},"html":{"href":"https://github.com/rust-lang/rust/pull/33415#discussion_r62800745"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/33415"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/33415","id":68943900,"html_url":"https://github.com/rust-lang/rust/pull/33415","diff_url":"https://github.com/rust-lang/rust/pull/33415.diff","patch_url":"https://github.com/rust-lang/rust/pull/33415.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/33415","number":33415,"state":"open","locked":false,"title":"Add error explanations for E0374, E0375, E0376 on issue #32777","user":{"login":"dfockler","id":2158103,"avatar_url":"https://avatars.githubusercontent.com/u/2158103?v=3","gravatar_id":"","url":"https://api.github.com/users/dfockler","html_url":"https://github.com/dfockler","followers_url":"https://api.github.com/users/dfockler/followers","following_url":"https://api.github.com/users/dfockler/following{/other_user}","gists_url":"https://api.github.com/users/dfockler/gists{/gist_id}","starred_url":"https://api.github.com/users/dfockler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfockler/subscriptions","organizations_url":"https://api.github.com/users/dfockler/orgs","repos_url":"https://api.github.com/users/dfockler/repos","events_url":"https://api.github.com/users/dfockler/events{/privacy}","received_events_url":"https://api.github.com/users/dfockler/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-04T22:43:51Z","updated_at":"2016-05-11T07:10:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1395a922cb17588b0b8ffcd42948674841d1123","assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rust/pulls/33415/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/33415/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/33415/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/6b1018fcbc7425a072dd63c6997f9b4fed82ac82","head":{"label":"dfockler:master","ref":"master","sha":"6b1018fcbc7425a072dd63c6997f9b4fed82ac82","user":{"login":"dfockler","id":2158103,"avatar_url":"https://avatars.githubusercontent.com/u/2158103?v=3","gravatar_id":"","url":"https://api.github.com/users/dfockler","html_url":"https://github.com/dfockler","followers_url":"https://api.github.com/users/dfockler/followers","following_url":"https://api.github.com/users/dfockler/following{/other_user}","gists_url":"https://api.github.com/users/dfockler/gists{/gist_id}","starred_url":"https://api.github.com/users/dfockler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfockler/subscriptions","organizations_url":"https://api.github.com/users/dfockler/orgs","repos_url":"https://api.github.com/users/dfockler/repos","events_url":"https://api.github.com/users/dfockler/events{/privacy}","received_events_url":"https://api.github.com/users/dfockler/received_events","type":"User","site_admin":false},"repo":{"id":32053253,"name":"rust","full_name":"dfockler/rust","owner":{"login":"dfockler","id":2158103,"avatar_url":"https://avatars.githubusercontent.com/u/2158103?v=3","gravatar_id":"","url":"https://api.github.com/users/dfockler","html_url":"https://github.com/dfockler","followers_url":"https://api.github.com/users/dfockler/followers","following_url":"https://api.github.com/users/dfockler/following{/other_user}","gists_url":"https://api.github.com/users/dfockler/gists{/gist_id}","starred_url":"https://api.github.com/users/dfockler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfockler/subscriptions","organizations_url":"https://api.github.com/users/dfockler/orgs","repos_url":"https://api.github.com/users/dfockler/repos","events_url":"https://api.github.com/users/dfockler/events{/privacy}","received_events_url":"https://api.github.com/users/dfockler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dfockler/rust","description":"a safe, concurrent, practical language","fork":true,"url":"https://api.github.com/repos/dfockler/rust","forks_url":"https://api.github.com/repos/dfockler/rust/forks","keys_url":"https://api.github.com/repos/dfockler/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dfockler/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dfockler/rust/teams","hooks_url":"https://api.github.com/repos/dfockler/rust/hooks","issue_events_url":"https://api.github.com/repos/dfockler/rust/issues/events{/number}","events_url":"https://api.github.com/repos/dfockler/rust/events","assignees_url":"https://api.github.com/repos/dfockler/rust/assignees{/user}","branches_url":"https://api.github.com/repos/dfockler/rust/branches{/branch}","tags_url":"https://api.github.com/repos/dfockler/rust/tags","blobs_url":"https://api.github.com/repos/dfockler/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dfockler/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dfockler/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/dfockler/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dfockler/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/dfockler/rust/languages","stargazers_url":"https://api.github.com/repos/dfockler/rust/stargazers","contributors_url":"https://api.github.com/repos/dfockler/rust/contributors","subscribers_url":"https://api.github.com/repos/dfockler/rust/subscribers","subscription_url":"https://api.github.com/repos/dfockler/rust/subscription","commits_url":"https://api.github.com/repos/dfockler/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/dfockler/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/dfockler/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/dfockler/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/dfockler/rust/contents/{+path}","compare_url":"https://api.github.com/repos/dfockler/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dfockler/rust/merges","archive_url":"https://api.github.com/repos/dfockler/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dfockler/rust/downloads","issues_url":"https://api.github.com/repos/dfockler/rust/issues{/number}","pulls_url":"https://api.github.com/repos/dfockler/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/dfockler/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/dfockler/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dfockler/rust/labels{/name}","releases_url":"https://api.github.com/repos/dfockler/rust/releases{/id}","deployments_url":"https://api.github.com/repos/dfockler/rust/deployments","created_at":"2015-03-12T02:40:14Z","updated_at":"2016-05-03T15:21:27Z","pushed_at":"2016-05-04T22:43:03Z","git_url":"git://github.com/dfockler/rust.git","ssh_url":"git@github.com:dfockler/rust.git","clone_url":"https://github.com/dfockler/rust.git","svn_url":"https://github.com/dfockler/rust","homepage":"http://www.rust-lang.org","size":289776,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"413bafdabf5c5716fd823ac9a6232c48e2ba2902","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}","deployments_url":"https://api.github.com/repos/rust-lang/rust/deployments","created_at":"2010-06-16T20:39:03Z","updated_at":"2016-05-11T05:45:55Z","pushed_at":"2016-05-11T07:04:18Z","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":492762,"stargazers_count":16601,"watchers_count":16601,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3178,"mirror_url":null,"open_issues_count":2508,"forks":3178,"open_issues":2508,"watchers":16601,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/33415"},"html":{"href":"https://github.com/rust-lang/rust/pull/33415"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/33415"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/33415/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/33415/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/33415/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/6b1018fcbc7425a072dd63c6997f9b4fed82ac82"}}}}