about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-04-06 11:07:20 -0700
committerAaron Turon <aturon@mozilla.com>2015-04-07 16:20:55 -0700
commitdddcbcfeac13c1cf0a262e7d57e14d6588dcadc2 (patch)
tree757168983c9bdae8fcff31afc1454e8126bd1b0f /src/test
parent9f37ba64e812713b273ad9818f05d852f6563b87 (diff)
downloadrust-dddcbcfeac13c1cf0a262e7d57e14d6588dcadc2.tar.gz
rust-dddcbcfeac13c1cf0a262e7d57e14d6588dcadc2.zip
Fix range performance regression
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
cc #24014
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/range-1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/compile-fail/range-1.rs b/src/test/compile-fail/range-1.rs
index 3ae61722bcf..826e4283ef8 100644
--- a/src/test/compile-fail/range-1.rs
+++ b/src/test/compile-fail/range-1.rs
@@ -19,6 +19,7 @@ pub fn main() {
     for i in false..true {}
     //~^ ERROR the trait
     //~^^ ERROR the trait
+    //~^^^ ERROR the trait
 
     // Unsized type.
     let arr: &[_] = &[1, 2, 3];