about summary refs log tree commit diff
path: root/src/libcore/tests
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-10 15:48:14 +0000
committerbors <bors@rust-lang.org>2018-06-10 15:48:14 +0000
commitc5a129e809172462e3f29ab733074630e29b569b (patch)
tree3909ea21a76f0b2a6b3f6b87ba75007ea7bdba6d /src/libcore/tests
parent900037e3c35d822a0487f74d2866433a7ca2f19c (diff)
parent87941b079ab29a3831c659bf467d7fb87d347c36 (diff)
downloadrust-c5a129e809172462e3f29ab733074630e29b569b.tar.gz
rust-c5a129e809172462e3f29ab733074630e29b569b.zip
Auto merge of #51200 - tmccombs:stable-iter-repeat-with, r=Centril,kennytm
Stabilize iterator_repeat_with

Fixes #48169
Diffstat (limited to 'src/libcore/tests')
-rw-r--r--src/libcore/tests/iter.rs12
-rw-r--r--src/libcore/tests/lib.rs1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/libcore/tests/iter.rs b/src/libcore/tests/iter.rs
index 2abac0cf1d5..9b8d7031f8e 100644
--- a/src/libcore/tests/iter.rs
+++ b/src/libcore/tests/iter.rs
@@ -1723,18 +1723,6 @@ fn test_repeat_with() {
 }
 
 #[test]
-fn test_repeat_with_rev() {
-    let mut curr = 1;
-    let mut pow2 = repeat_with(|| { let tmp = curr; curr *= 2; tmp })
-                    .rev().take(4);
-    assert_eq!(pow2.next(), Some(1));
-    assert_eq!(pow2.next(), Some(2));
-    assert_eq!(pow2.next(), Some(4));
-    assert_eq!(pow2.next(), Some(8));
-    assert_eq!(pow2.next(), None);
-}
-
-#[test]
 fn test_repeat_with_take() {
     let mut it = repeat_with(|| 42).take(3);
     assert_eq!(it.next(), Some(42));
diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs
index 7c62d0d758d..11765e3ef56 100644
--- a/src/libcore/tests/lib.rs
+++ b/src/libcore/tests/lib.rs
@@ -24,7 +24,6 @@
 #![feature(fmt_internals)]
 #![feature(hashmap_internals)]
 #![feature(iterator_flatten)]
-#![feature(iterator_repeat_with)]
 #![feature(pattern)]
 #![feature(range_is_empty)]
 #![feature(raw)]