2017-02-07 21:05:30 +01:00
|
|
|
error: this range is empty so this for loop will never run
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:39:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..0 {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::reverse-range-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (0..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:43:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..=0 {
|
|
|
|
| ^^^^^^
|
2019-10-26 21:53:42 +02:00
|
|
|
|
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-09-20 08:25:05 +02:00
|
|
|
LL | for i in (0..=10).rev() {
|
2018-12-27 16:57:55 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:47:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in MAX_LEN..0 {
|
|
|
|
| ^^^^^^^^^^
|
2019-10-26 21:53:42 +02:00
|
|
|
|
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (0..MAX_LEN).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:72:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in 10..5 + 4 {
|
|
|
|
| ^^^^^^^^^
|
2019-10-26 21:53:42 +02:00
|
|
|
|
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 4..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:76:14
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(3 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2019-10-26 21:53:42 +02:00
|
|
|
|
|
2017-02-07 21:05:30 +01:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for i in ((3 - 1)..(5 + 2)).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:98:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:100:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter_mut() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2020-01-06 07:36:33 +01:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2019-09-20 08:25:05 +02:00
|
|
|
--> $DIR/for_loop_fixable.rs:103:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in out_vec.into_iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:108:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in [1, 2, 3].iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:112:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in [0; 32].iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:117:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in ll.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&ll`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:120:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in vd.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&vd`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:123:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in bh.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bh`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:126:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in hm.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hm`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:129:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in bt.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bt`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:132:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in hs.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hs`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-09-03 09:19:59 +02:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-11-07 13:44:57 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:135:15
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | for _v in bs.iter() {}
|
2019-05-24 08:19:51 +02:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bs`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2020-01-06 07:36:33 +01:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2020-01-01 06:09:09 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:310:18
|
|
|
|
|
|
|
|
|
LL | for i in iterator.into_iter() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `iterator`
|
|
|
|
|
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
|
|
|
--> $DIR/for_loop_fixable.rs:330:18
|
|
|
|
|
|
|
|
|
LL | for _ in t.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `&t`
|
|
|
|
|
2020-01-06 07:36:33 +01:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2020-01-01 06:09:09 +01:00
|
|
|
--> $DIR/for_loop_fixable.rs:332:18
|
|
|
|
|
|
|
|
|
LL | for _ in r.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `r`
|
|
|
|
|
|
|
|
error: aborting due to 20 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|