2017-02-07 20:05:30 +00:00
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:39:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in 10..0 {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::reverse-range-loop` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in (0..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:43:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in 10..=0 {
|
|
|
|
| ^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in (0...10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:47:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in MAX_LEN..0 {
|
|
|
|
| ^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in (0..MAX_LEN).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:51:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in 5..5 {
|
|
|
|
| ^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:76:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in 10..5 + 4 {
|
|
|
|
| ^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 4..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:80:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(3 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in ((3 - 1)..(5 + 2)).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:84:14
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(8 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:106:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:108:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter_mut() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods`
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:111:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in out_vec.into_iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:114:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in array.into_iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&array`
|
2017-02-21 11:13:44 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:119:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in [1, 2, 3].iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:123:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in [0; 32].iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:128:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in ll.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&ll`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:131:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vd.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&vd`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:134:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in bh.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bh`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:137:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in hm.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hm`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:140:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in bt.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bt`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:143:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in hs.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hs`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:146:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in bs.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bs`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
|
2019-08-07 05:37:13 +00:00
|
|
|
--> $DIR/for_loop.rs:148:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter().next() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-next-loop` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-08-07 05:37:13 +00:00
|
|
|
error: aborting due to 21 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|