{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/comments/41245089","id":41245089,"diff_hunk":"@@ -13,10 +13,8 @@\n fn main() {\n     let values: Vec<u8> = vec![1,2,3,4,5,6,7,8];\n \n-    for\n-        [x,y,z]\n-//~^ ERROR refutable pattern in `for` loop binding: `[]` not covered\n-        in values.chunks(3).filter(|&xs| xs.len() == 3) {\n+    for [x,y,z] in values.chunks(3).filter(|&xs| xs.len() == 3) {\n+        //~^ ERROR refutable pattern in `for` loop binding: `[]` not covered","path":"src/test/compile-fail/issue-15381.rs","position":9,"original_position":9,"commit_id":"ff197e9017386c2027a493e225337cb16e0202ea","original_commit_id":"ff197e9017386c2027a493e225337cb16e0202ea","user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars.githubusercontent.com/u/332036?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"body":"same here wrt error locality","created_at":"2015-10-06T09:49:57Z","updated_at":"2015-10-06T09:49:57Z","html_url":"https://github.com/rust-lang/rust/pull/28857#discussion_r41245089","pull_request_url":"https://api.github.com/repos/rust-lang/rust/pulls/28857","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments/41245089"},"html":{"href":"https://github.com/rust-lang/rust/pull/28857#discussion_r41245089"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/28857"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/28857","id":46858519,"html_url":"https://github.com/rust-lang/rust/pull/28857","diff_url":"https://github.com/rust-lang/rust/pull/28857.diff","patch_url":"https://github.com/rust-lang/rust/pull/28857.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/28857","number":28857,"state":"open","locked":false,"title":"Move desugarings to lowering step","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"body":"r? @nikomatsakis ","created_at":"2015-10-06T03:10:47Z","updated_at":"2015-10-06T09:49:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1556b2161ae530b9fc2eda9300209c500010231","assignee":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rust/pulls/28857/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/28857/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/28857/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/ff197e9017386c2027a493e225337cb16e0202ea","head":{"label":"nrc:lowering","ref":"lowering","sha":"ff197e9017386c2027a493e225337cb16e0202ea","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"repo":{"id":11998169,"name":"rust","full_name":"nrc/rust","owner":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nrc/rust","description":"a safe, concurrent, practical language","fork":true,"url":"https://api.github.com/repos/nrc/rust","forks_url":"https://api.github.com/repos/nrc/rust/forks","keys_url":"https://api.github.com/repos/nrc/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nrc/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nrc/rust/teams","hooks_url":"https://api.github.com/repos/nrc/rust/hooks","issue_events_url":"https://api.github.com/repos/nrc/rust/issues/events{/number}","events_url":"https://api.github.com/repos/nrc/rust/events","assignees_url":"https://api.github.com/repos/nrc/rust/assignees{/user}","branches_url":"https://api.github.com/repos/nrc/rust/branches{/branch}","tags_url":"https://api.github.com/repos/nrc/rust/tags","blobs_url":"https://api.github.com/repos/nrc/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nrc/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nrc/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/nrc/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nrc/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/nrc/rust/languages","stargazers_url":"https://api.github.com/repos/nrc/rust/stargazers","contributors_url":"https://api.github.com/repos/nrc/rust/contributors","subscribers_url":"https://api.github.com/repos/nrc/rust/subscribers","subscription_url":"https://api.github.com/repos/nrc/rust/subscription","commits_url":"https://api.github.com/repos/nrc/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/nrc/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/nrc/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/nrc/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/nrc/rust/contents/{+path}","compare_url":"https://api.github.com/repos/nrc/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nrc/rust/merges","archive_url":"https://api.github.com/repos/nrc/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nrc/rust/downloads","issues_url":"https://api.github.com/repos/nrc/rust/issues{/number}","pulls_url":"https://api.github.com/repos/nrc/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/nrc/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/nrc/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nrc/rust/labels{/name}","releases_url":"https://api.github.com/repos/nrc/rust/releases{/id}","created_at":"2013-08-09T10:00:46Z","updated_at":"2015-04-23T20:46:35Z","pushed_at":"2015-10-06T08:00:21Z","git_url":"git://github.com/nrc/rust.git","ssh_url":"git@github.com:nrc/rust.git","clone_url":"https://github.com/nrc/rust.git","svn_url":"https://github.com/nrc/rust","homepage":"http://www.rust-lang.org","size":329177,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"3729b126e299c61b922f50fe14affdef51ba1e8c","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-10-06T08:20:43Z","pushed_at":"2015-10-06T08:48:38Z","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":690599,"stargazers_count":13685,"watchers_count":13685,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2649,"mirror_url":null,"open_issues_count":2237,"forks":2649,"open_issues":2237,"watchers":13685,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/28857"},"html":{"href":"https://github.com/rust-lang/rust/pull/28857"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/28857"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/28857/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/28857/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/28857/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/ff197e9017386c2027a493e225337cb16e0202ea"}}}}