bors c2bda2a5bb Auto merge of #21806 - edwardw:new-range-impl, r=alexcrichton
The new `::ops::Range` has separated implementations for each of the
numeric types, while the old `::iter::Range` has one for type `Int`.
However, we do not take output bindings into account when selecting
traits. So it confuses `typeck` and makes the new range does not work as
good as the old one when it comes to type inference.

This patch implements `Iterator` for the new range for one type `Int`.
This limitation could be lifted, however, if we ever reconsider the
output types' role in type inference.

Closes #21595
Closes #21649
Closes #21672
2015-02-01 19:07:11 +00:00
..
2015-01-31 17:40:40 +01:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-31 17:40:40 +01:00
2015-01-31 17:40:40 +01:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-31 17:40:40 +01:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-30 14:53:34 -08:00
2015-01-29 15:02:00 -08:00