Auto merge of #43012 - scottmcm:delete-range-step-by, r=alexcrichton
Delete deprecated & unstable range-specific `step_by` Using the new one is annoying while this one exists, since the inherent method hides the one on iterator. Tracking issue: #27741 Replacement: #41439 Deprecation: #42310 for 1.19 Fixes #41477
This commit is contained in:
@@ -510,8 +510,7 @@ fn test_from_iter() {
|
||||
let u: Vec<_> = deq.iter().cloned().collect();
|
||||
assert_eq!(u, v);
|
||||
|
||||
// FIXME #27741: Remove `.skip(0)` when Range::step_by is fully removed
|
||||
let seq = (0..).skip(0).step_by(2).take(256);
|
||||
let seq = (0..).step_by(2).take(256);
|
||||
let deq: VecDeque<_> = seq.collect();
|
||||
for (i, &x) in deq.iter().enumerate() {
|
||||
assert_eq!(2 * i, x);
|
||||
|
||||
Reference in New Issue
Block a user