11error: called `.iter().count()` on a `slice`
2- --> tests/ui/iter_count.rs:54 :6
2+ --> tests/ui/iter_count.rs:47 :6
33 |
44LL | &vec[..].iter().count();
55 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec[..].len()`
@@ -8,145 +8,145 @@ LL | &vec[..].iter().count();
88 = help: to override `-D warnings` add `#[allow(clippy::iter_count)]`
99
1010error: called `.iter().count()` on a `Vec`
11- --> tests/ui/iter_count.rs:56 :5
11+ --> tests/ui/iter_count.rs:49 :5
1212 |
1313LL | vec.iter().count();
1414 | ^^^^^^^^^^^^^^^^^^ help: try: `vec.len()`
1515
1616error: called `.iter().count()` on a `slice`
17- --> tests/ui/iter_count.rs:58 :5
17+ --> tests/ui/iter_count.rs:51 :5
1818 |
1919LL | boxed_slice.iter().count();
2020 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `boxed_slice.len()`
2121
2222error: called `.iter().count()` on a `VecDeque`
23- --> tests/ui/iter_count.rs:60 :5
23+ --> tests/ui/iter_count.rs:53 :5
2424 |
2525LL | vec_deque.iter().count();
2626 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec_deque.len()`
2727
2828error: called `.iter().count()` on a `HashSet`
29- --> tests/ui/iter_count.rs:62 :5
29+ --> tests/ui/iter_count.rs:55 :5
3030 |
3131LL | hash_set.iter().count();
3232 | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_set.len()`
3333
3434error: called `.iter().count()` on a `HashMap`
35- --> tests/ui/iter_count.rs:64 :5
35+ --> tests/ui/iter_count.rs:57 :5
3636 |
3737LL | hash_map.iter().count();
3838 | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_map.len()`
3939
4040error: called `.iter().count()` on a `BTreeMap`
41- --> tests/ui/iter_count.rs:66 :5
41+ --> tests/ui/iter_count.rs:59 :5
4242 |
4343LL | b_tree_map.iter().count();
4444 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_map.len()`
4545
4646error: called `.iter().count()` on a `BTreeSet`
47- --> tests/ui/iter_count.rs:68 :5
47+ --> tests/ui/iter_count.rs:61 :5
4848 |
4949LL | b_tree_set.iter().count();
5050 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_set.len()`
5151
5252error: called `.iter().count()` on a `LinkedList`
53- --> tests/ui/iter_count.rs:70 :5
53+ --> tests/ui/iter_count.rs:63 :5
5454 |
5555LL | linked_list.iter().count();
5656 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `linked_list.len()`
5757
5858error: called `.iter().count()` on a `BinaryHeap`
59- --> tests/ui/iter_count.rs:72 :5
59+ --> tests/ui/iter_count.rs:65 :5
6060 |
6161LL | binary_heap.iter().count();
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `binary_heap.len()`
6363
6464error: called `.iter_mut().count()` on a `Vec`
65- --> tests/ui/iter_count.rs:75 :5
65+ --> tests/ui/iter_count.rs:68 :5
6666 |
6767LL | vec.iter_mut().count();
6868 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec.len()`
6969
7070error: called `.iter_mut().count()` on a `slice`
71- --> tests/ui/iter_count.rs:77 :6
71+ --> tests/ui/iter_count.rs:70 :6
7272 |
7373LL | &vec[..].iter_mut().count();
7474 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec[..].len()`
7575
7676error: called `.iter_mut().count()` on a `VecDeque`
77- --> tests/ui/iter_count.rs:79 :5
77+ --> tests/ui/iter_count.rs:72 :5
7878 |
7979LL | vec_deque.iter_mut().count();
8080 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec_deque.len()`
8181
8282error: called `.iter_mut().count()` on a `HashMap`
83- --> tests/ui/iter_count.rs:81 :5
83+ --> tests/ui/iter_count.rs:74 :5
8484 |
8585LL | hash_map.iter_mut().count();
8686 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_map.len()`
8787
8888error: called `.iter_mut().count()` on a `BTreeMap`
89- --> tests/ui/iter_count.rs:83 :5
89+ --> tests/ui/iter_count.rs:76 :5
9090 |
9191LL | b_tree_map.iter_mut().count();
9292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_map.len()`
9393
9494error: called `.iter_mut().count()` on a `LinkedList`
95- --> tests/ui/iter_count.rs:85 :5
95+ --> tests/ui/iter_count.rs:78 :5
9696 |
9797LL | linked_list.iter_mut().count();
9898 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `linked_list.len()`
9999
100100error: called `.into_iter().count()` on a `slice`
101- --> tests/ui/iter_count.rs:88 :6
101+ --> tests/ui/iter_count.rs:81 :6
102102 |
103103LL | &vec[..].into_iter().count();
104104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec[..].len()`
105105
106106error: called `.into_iter().count()` on a `Vec`
107- --> tests/ui/iter_count.rs:90 :5
107+ --> tests/ui/iter_count.rs:83 :5
108108 |
109109LL | vec.into_iter().count();
110110 | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec.len()`
111111
112112error: called `.into_iter().count()` on a `VecDeque`
113- --> tests/ui/iter_count.rs:92 :5
113+ --> tests/ui/iter_count.rs:85 :5
114114 |
115115LL | vec_deque.into_iter().count();
116116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec_deque.len()`
117117
118118error: called `.into_iter().count()` on a `HashSet`
119- --> tests/ui/iter_count.rs:94 :5
119+ --> tests/ui/iter_count.rs:87 :5
120120 |
121121LL | hash_set.into_iter().count();
122122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_set.len()`
123123
124124error: called `.into_iter().count()` on a `HashMap`
125- --> tests/ui/iter_count.rs:96 :5
125+ --> tests/ui/iter_count.rs:89 :5
126126 |
127127LL | hash_map.into_iter().count();
128128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_map.len()`
129129
130130error: called `.into_iter().count()` on a `BTreeMap`
131- --> tests/ui/iter_count.rs:98 :5
131+ --> tests/ui/iter_count.rs:91 :5
132132 |
133133LL | b_tree_map.into_iter().count();
134134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_map.len()`
135135
136136error: called `.into_iter().count()` on a `BTreeSet`
137- --> tests/ui/iter_count.rs:100 :5
137+ --> tests/ui/iter_count.rs:93 :5
138138 |
139139LL | b_tree_set.into_iter().count();
140140 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_set.len()`
141141
142142error: called `.into_iter().count()` on a `LinkedList`
143- --> tests/ui/iter_count.rs:102 :5
143+ --> tests/ui/iter_count.rs:95 :5
144144 |
145145LL | linked_list.into_iter().count();
146146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `linked_list.len()`
147147
148148error: called `.into_iter().count()` on a `BinaryHeap`
149- --> tests/ui/iter_count.rs:104 :5
149+ --> tests/ui/iter_count.rs:97 :5
150150 |
151151LL | binary_heap.into_iter().count();
152152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `binary_heap.len()`
0 commit comments