{"action":"closed","number":38315,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/38315","id":97495085,"html_url":"https://github.com/rust-lang/rust/pull/38315","diff_url":"https://github.com/rust-lang/rust/pull/38315.diff","patch_url":"https://github.com/rust-lang/rust/pull/38315.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/38315","number":38315,"state":"closed","locked":false,"title":"Expand E0309 explanation with motivating example","user":{"login":"jonhoo","id":176295,"avatar_url":"https://avatars.githubusercontent.com/u/176295?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"body":"I recently started reading @Gankro's \"[Learning Rust With Entirely Too Many Linked Lists](http://cglab.ca/~abeinges/blah/too-many-lists/book/README.html)\", and came across [a part](http://cglab.ca/~abeinges/blah/too-many-lists/book/second-iter.html) where he comes across `E0309`, and after showing `rustc --explain E0309` prompty says\r\n\r\n> This is dumb. I think it's dumb. You have to do it.\r\n\r\nHumor aside, I think this says something about the current explanation being somewhat lacking.\r\n\r\nThis patch introduces a motivating example saying why `T: 'a` is a necessary restriction. Hopefully, this will help new Rustaceans understand why leaving out the `'a` bound on `T` might lead to broken code.","created_at":"2016-12-12T05:01:42Z","updated_at":"2016-12-21T02:48:48Z","closed_at":"2016-12-21T02:48:48Z","merged_at":"2016-12-21T02:48:48Z","merge_commit_sha":"f09e2cc7ed34ae1623c334df92981bc53a11a6ae","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},"assignees":[{"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/38315/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/38315/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/38315/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/f09e2cc7ed34ae1623c334df92981bc53a11a6ae","head":{"label":"jonhoo:better-E0309","ref":"better-E0309","sha":"f09e2cc7ed34ae1623c334df92981bc53a11a6ae","user":{"login":"jonhoo","id":176295,"avatar_url":"https://avatars.githubusercontent.com/u/176295?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"repo":{"id":76220079,"name":"rust","full_name":"jonhoo/rust","owner":{"login":"jonhoo","id":176295,"avatar_url":"https://avatars.githubusercontent.com/u/176295?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonhoo/rust","description":"A safe, concurrent, practical language.","fork":true,"url":"https://api.github.com/repos/jonhoo/rust","forks_url":"https://api.github.com/repos/jonhoo/rust/forks","keys_url":"https://api.github.com/repos/jonhoo/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonhoo/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonhoo/rust/teams","hooks_url":"https://api.github.com/repos/jonhoo/rust/hooks","issue_events_url":"https://api.github.com/repos/jonhoo/rust/issues/events{/number}","events_url":"https://api.github.com/repos/jonhoo/rust/events","assignees_url":"https://api.github.com/repos/jonhoo/rust/assignees{/user}","branches_url":"https://api.github.com/repos/jonhoo/rust/branches{/branch}","tags_url":"https://api.github.com/repos/jonhoo/rust/tags","blobs_url":"https://api.github.com/repos/jonhoo/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonhoo/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonhoo/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonhoo/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonhoo/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/jonhoo/rust/languages","stargazers_url":"https://api.github.com/repos/jonhoo/rust/stargazers","contributors_url":"https://api.github.com/repos/jonhoo/rust/contributors","subscribers_url":"https://api.github.com/repos/jonhoo/rust/subscribers","subscription_url":"https://api.github.com/repos/jonhoo/rust/subscription","commits_url":"https://api.github.com/repos/jonhoo/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonhoo/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonhoo/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonhoo/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonhoo/rust/contents/{+path}","compare_url":"https://api.github.com/repos/jonhoo/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonhoo/rust/merges","archive_url":"https://api.github.com/repos/jonhoo/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonhoo/rust/downloads","issues_url":"https://api.github.com/repos/jonhoo/rust/issues{/number}","pulls_url":"https://api.github.com/repos/jonhoo/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/jonhoo/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/jonhoo/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonhoo/rust/labels{/name}","releases_url":"https://api.github.com/repos/jonhoo/rust/releases{/id}","deployments_url":"https://api.github.com/repos/jonhoo/rust/deployments","created_at":"2016-12-12T03:49:06Z","updated_at":"2016-12-12T03:49:25Z","pushed_at":"2016-12-12T04:57:34Z","git_url":"git://github.com/jonhoo/rust.git","ssh_url":"git@github.com:jonhoo/rust.git","clone_url":"https://github.com/jonhoo/rust.git","svn_url":"https://github.com/jonhoo/rust","homepage":"https://www.rust-lang.org","size":314446,"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":"5e2f37fca9a792a8780e6f427e77ca0fe707bd47","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-12-20T23:18:54Z","pushed_at":"2016-12-21T02:48:34Z","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":"https://www.rust-lang.org","size":317747,"stargazers_count":19450,"watchers_count":19450,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3724,"mirror_url":null,"open_issues_count":2998,"forks":3724,"open_issues":2998,"watchers":19450,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/38315"},"html":{"href":"https://github.com/rust-lang/rust/pull/38315"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/38315"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/38315/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/38315/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/38315/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/f09e2cc7ed34ae1623c334df92981bc53a11a6ae"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bors","id":3372342,"avatar_url":"https://avatars.githubusercontent.com/u/3372342?v=3","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"comments":8,"review_comments":0,"commits":1,"additions":17,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"bors"}}