2017-02-07 14:05:30 -06:00
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:40:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in 10..0 {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::reverse-range-loop` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in (0..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:44:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in 10..=0 {
|
|
|
|
| ^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in (0...10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:48:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in MAX_LEN..0 {
|
|
|
|
| ^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in (0..MAX_LEN).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:52:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in 5..5 {
|
|
|
|
| ^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:77:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in 10..5 + 4 {
|
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 4..10).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:81:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(3 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
help: consider using the following if you are attempting to iterate over this range in reverse
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in ((3 - 1)..(5 + 2)).rev() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: this range is empty so this for loop will never run
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:85:14
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(8 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:107:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^^
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:109:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter_mut() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods`
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:112:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in out_vec.into_iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:115:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in array.into_iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-21 05:13:44 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:120:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in [1, 2, 3].iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:124:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in [0; 32].iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:129:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in ll.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:132:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in vd.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:135:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in bh.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:138:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in hm.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:141:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in bt.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:144:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in hs.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-09-03 02:19:59 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:147:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in bs.iter() {}
|
2019-03-26 04:55:03 -05:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:149:15
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter().next() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-next-loop` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you are collect()ing an iterator and throwing away the result. Consider using an explicit for loop to exhaust the iterator
|
2019-04-24 01:01:16 -05:00
|
|
|
--> $DIR/for_loop.rs:156:5
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
|
|
|
LL | vec.iter().cloned().map(|x| out.push(x)).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unused-collect` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2019-04-24 01:01:16 -05:00
|
|
|
error: aborting due to 22 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|