Skip to content

Commit 15dff84

Browse files
committed
Avoid range::step_by in another test
1 parent 1723e06 commit 15dff84

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/libcollections/tests/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
#![feature(collections)]
1717
#![feature(const_fn)]
1818
#![feature(exact_size_is_empty)]
19+
#![feature(iterator_step_by)]
1920
#![feature(pattern)]
2021
#![feature(placement_in_syntax)]
2122
#![feature(rand)]
2223
#![feature(splice)]
23-
#![feature(step_by)]
2424
#![feature(str_escape)]
2525
#![feature(test)]
2626
#![feature(unboxed_closures)]

src/libcollections/tests/vec_deque.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ fn test_from_iter() {
510510
let u: Vec<_> = deq.iter().cloned().collect();
511511
assert_eq!(u, v);
512512

513-
let seq = (0..).step_by(2).take(256);
513+
// FIXME #27741: Remove `.skip(0)` when Range::step_by is fully removed
514+
let seq = (0..).skip(0).step_by(2).take(256);
514515
let deq: VecDeque<_> = seq.collect();
515516
for (i, &x) in deq.iter().enumerate() {
516517
assert_eq!(2 * i, x);

src/libcore/tests/iter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use core::iter::*;
1212
use core::{i8, i16, isize};
1313
use core::usize;
1414

15-
// This is here to simplify calling Iterator::step_by. Remove once
16-
// Range::step_by is completely gone (not just deprecated).
15+
// FIXME #27741: This is here to simplify calling Iterator::step_by. Remove
16+
// once Range::step_by is completely gone (not just deprecated).
1717
trait IterEx: Sized {
1818
fn iter_step_by(self, n: usize) -> StepBy<Self>;
1919
}

0 commit comments

Comments
 (0)