{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21806","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21806/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21806/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21806/events","html_url":"https://github.com/rust-lang/rust/pull/21806","id":56126339,"number":21806,"title":"Make sure type inference with `a..b` as good as `range(a,b)`","user":{"login":"edwardw","id":454049,"avatar_url":"https://avatars.githubusercontent.com/u/454049?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardw","html_url":"https://github.com/edwardw","followers_url":"https://api.github.com/users/edwardw/followers","following_url":"https://api.github.com/users/edwardw/following{/other_user}","gists_url":"https://api.github.com/users/edwardw/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardw/subscriptions","organizations_url":"https://api.github.com/users/edwardw/orgs","repos_url":"https://api.github.com/users/edwardw/repos","events_url":"https://api.github.com/users/edwardw/events{/privacy}","received_events_url":"https://api.github.com/users/edwardw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-01-31T14:20:33Z","updated_at":"2015-02-01T21:53:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/21806","html_url":"https://github.com/rust-lang/rust/pull/21806","diff_url":"https://github.com/rust-lang/rust/pull/21806.diff","patch_url":"https://github.com/rust-lang/rust/pull/21806.patch"},"body":"The new `::ops::Range` has separated implementations for each of the\r\nnumeric types, while the old `::iter::Range` has one for type `Int`.\r\nHowever, we do not take output bindings into account when selecting\r\ntraits. So it confuses `typeck` and makes the new range does not work as\r\ngood as the old one when it comes to type inference.\r\n\r\nThis patch implements `Iterator` for the new range for one type `Int`.\r\nThis limitation could be lifted, however, if we ever reconsider the\r\noutput types' role in type inference.\r\n\r\nCloses #21595\r\nCloses #21649\r\nCloses #21672"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/72386475","html_url":"https://github.com/rust-lang/rust/pull/21806#issuecomment-72386475","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21806","id":72386475,"user":{"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},"created_at":"2015-02-01T21:53:52Z","updated_at":"2015-02-01T21:53:52Z","body":":sunny: Test successful - [auto-linux-32-nopt-t](http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3393), [auto-linux-32-opt](http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/3394), [auto-linux-64-nopt-t](http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3389), [auto-linux-64-opt](http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/3397), [auto-linux-64-x-android-t](http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/3370), [auto-mac-32-opt](http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/3408), [auto-mac-64-nopt-t](http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3404), [auto-mac-64-opt](http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/3400), [auto-win-32-nopt-t](http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3061), [auto-win-32-opt](http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/3059), [auto-win-64-nopt-t](http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1890), [auto-win-64-opt](http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1898)"}}