]> git.lizzy.rs Git - rust.git/commit
Auto merge of #24120 - aturon:range-perf, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 8 Apr 2015 07:02:06 +0000 (07:02 +0000)
committerbors <bors@rust-lang.org>
Wed, 8 Apr 2015 07:02:06 +0000 (07:02 +0000)
commit3a66c7f6263ca390436a6faa9b8cbd0ef66c1e6c
treec3c2216279b3168c5aaf504e14fb8c26ddcf71c0
parentce97c197c2ba3f89818721728cff219258497a69
parentdddcbcfeac13c1cf0a262e7d57e14d6588dcadc2
Auto merge of #24120 - aturon:range-perf, r=alexcrichton

A recent change to the implementation of range iterators meant that,
even when stepping by 1, the iterators *always* involved checked
arithmetic.

This commit reverts to the earlier behavior (while retaining the
refactoring into traits).

Fixes #24095
Closes #24119
cc #24014

r? @alexcrichton
src/libcore/iter.rs