1 error: this range is empty so this for loop will never run
2 --> $DIR/for_loop_fixable.rs:38:14
7 = note: `-D clippy::reverse-range-loop` implied by `-D warnings`
8 help: consider using the following if you are attempting to iterate over this range in reverse
10 LL | for i in (0..10).rev() {
13 error: this range is empty so this for loop will never run
14 --> $DIR/for_loop_fixable.rs:42:14
16 LL | for i in 10..=0 {
19 help: consider using the following if you are attempting to iterate over this range in reverse
21 LL | for i in (0..=10).rev() {
24 error: this range is empty so this for loop will never run
25 --> $DIR/for_loop_fixable.rs:46:14
27 LL | for i in MAX_LEN..0 {
30 help: consider using the following if you are attempting to iterate over this range in reverse
32 LL | for i in (0..MAX_LEN).rev() {
35 error: this range is empty so this for loop will never run
36 --> $DIR/for_loop_fixable.rs:71:14
38 LL | for i in 10..5 + 4 {
41 help: consider using the following if you are attempting to iterate over this range in reverse
43 LL | for i in (5 + 4..10).rev() {
46 error: this range is empty so this for loop will never run
47 --> $DIR/for_loop_fixable.rs:75:14
49 LL | for i in (5 + 2)..(3 - 1) {
52 help: consider using the following if you are attempting to iterate over this range in reverse
54 LL | for i in ((3 - 1)..(5 + 2)).rev() {
55 | ^^^^^^^^^^^^^^^^^^^^^^^^
57 error: it is more concise to loop over references to containers instead of using explicit iteration methods
58 --> $DIR/for_loop_fixable.rs:97:15
60 LL | for _v in vec.iter() {}
61 | ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
63 = note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
65 error: it is more concise to loop over references to containers instead of using explicit iteration methods
66 --> $DIR/for_loop_fixable.rs:99:15
68 LL | for _v in vec.iter_mut() {}
69 | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
71 error: it is more concise to loop over containers instead of using explicit iteration methods
72 --> $DIR/for_loop_fixable.rs:102:15
74 LL | for _v in out_vec.into_iter() {}
75 | ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
77 = note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
79 error: it is more concise to loop over references to containers instead of using explicit iteration methods
80 --> $DIR/for_loop_fixable.rs:107:15
82 LL | for _v in [1, 2, 3].iter() {}
83 | ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
85 error: it is more concise to loop over references to containers instead of using explicit iteration methods
86 --> $DIR/for_loop_fixable.rs:111:15
88 LL | for _v in [0; 32].iter() {}
89 | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
91 error: it is more concise to loop over references to containers instead of using explicit iteration methods
92 --> $DIR/for_loop_fixable.rs:116:15
94 LL | for _v in ll.iter() {}
95 | ^^^^^^^^^ help: to write this more concisely, try: `&ll`
97 error: it is more concise to loop over references to containers instead of using explicit iteration methods
98 --> $DIR/for_loop_fixable.rs:119:15
100 LL | for _v in vd.iter() {}
101 | ^^^^^^^^^ help: to write this more concisely, try: `&vd`
103 error: it is more concise to loop over references to containers instead of using explicit iteration methods
104 --> $DIR/for_loop_fixable.rs:122:15
106 LL | for _v in bh.iter() {}
107 | ^^^^^^^^^ help: to write this more concisely, try: `&bh`
109 error: it is more concise to loop over references to containers instead of using explicit iteration methods
110 --> $DIR/for_loop_fixable.rs:125:15
112 LL | for _v in hm.iter() {}
113 | ^^^^^^^^^ help: to write this more concisely, try: `&hm`
115 error: it is more concise to loop over references to containers instead of using explicit iteration methods
116 --> $DIR/for_loop_fixable.rs:128:15
118 LL | for _v in bt.iter() {}
119 | ^^^^^^^^^ help: to write this more concisely, try: `&bt`
121 error: it is more concise to loop over references to containers instead of using explicit iteration methods
122 --> $DIR/for_loop_fixable.rs:131:15
124 LL | for _v in hs.iter() {}
125 | ^^^^^^^^^ help: to write this more concisely, try: `&hs`
127 error: it is more concise to loop over references to containers instead of using explicit iteration methods
128 --> $DIR/for_loop_fixable.rs:134:15
130 LL | for _v in bs.iter() {}
131 | ^^^^^^^^^ help: to write this more concisely, try: `&bs`
133 error: it is more concise to loop over containers instead of using explicit iteration methods
134 --> $DIR/for_loop_fixable.rs:309:18
136 LL | for i in iterator.into_iter() {
137 | ^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `iterator`
139 error: it is more concise to loop over references to containers instead of using explicit iteration methods
140 --> $DIR/for_loop_fixable.rs:329:18
142 LL | for _ in t.into_iter() {}
143 | ^^^^^^^^^^^^^ help: to write this more concisely, try: `&t`
145 error: it is more concise to loop over containers instead of using explicit iteration methods
146 --> $DIR/for_loop_fixable.rs:331:18
148 LL | for _ in r.into_iter() {}
149 | ^^^^^^^^^^^^^ help: to write this more concisely, try: `r`
151 error: aborting due to 20 previous errors