forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove tests using removed feature
step_by
.
Update test outputs.
- Loading branch information
Showing
4 changed files
with
62 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,12 @@ | ||
error: use of deprecated item: replaced by `Iterator::step_by` | ||
--> range.rs:14:12 | ||
| | ||
14 | (0..1).step_by(0); | ||
| ^^^^^^^ | ||
| | ||
= note: `-D deprecated` implied by `-D warnings` | ||
|
||
error: use of deprecated item: replaced by `Iterator::step_by` | ||
--> range.rs:16:12 | ||
| | ||
16 | (0..1).step_by(1); | ||
| ^^^^^^^ | ||
|
||
error: use of deprecated item: replaced by `Iterator::step_by` | ||
--> range.rs:18:11 | ||
| | ||
18 | (1..).step_by(0); | ||
| ^^^^^^^ | ||
|
||
error: use of deprecated item: replaced by `Iterator::step_by` | ||
--> range.rs:19:13 | ||
| | ||
19 | (1...2).step_by(0); | ||
| ^^^^^^^ | ||
|
||
error: use of deprecated item: replaced by `Iterator::step_by` | ||
--> range.rs:22:7 | ||
| | ||
22 | x.step_by(0); | ||
| ^^^^^^^ | ||
|
||
error: It is more idiomatic to use v1.iter().enumerate() | ||
--> range.rs:30:14 | ||
--> range.rs:22:14 | ||
| | ||
30 | let _x = v1.iter().zip(0..v1.len()); | ||
22 | let _x = v1.iter().zip(0..v1.len()); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D range-zip-with-len` implied by `-D warnings` | ||
|
||
error: Iterator::step_by(0) will panic at runtime | ||
--> range.rs:34:13 | ||
| | ||
34 | let _ = v1.iter().step_by(2/3); | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D iterator-step-by-zero` implied by `-D warnings` | ||
|
||
error: aborting due to 7 previous errors | ||
error: aborting due to previous error | ||
|
||
|
||
To learn more, run the command again with --verbose. |