summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/iter_count.stderr
blob: 2e3d7fc35de9c0de17d3f712bbc87a892c90dbad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
error: called `.iter().count()` on a `slice`
  --> $DIR/iter_count.rs:54:6
   |
LL |     &vec[..].iter().count();
   |      ^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec[..].len()`
   |
   = note: `-D clippy::iter-count` implied by `-D warnings`

error: called `.iter().count()` on a `Vec`
  --> $DIR/iter_count.rs:55:5
   |
LL |     vec.iter().count();
   |     ^^^^^^^^^^^^^^^^^^ help: try: `vec.len()`

error: called `.iter().count()` on a `slice`
  --> $DIR/iter_count.rs:56:5
   |
LL |     boxed_slice.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `boxed_slice.len()`

error: called `.iter().count()` on a `VecDeque`
  --> $DIR/iter_count.rs:57:5
   |
LL |     vec_deque.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec_deque.len()`

error: called `.iter().count()` on a `HashSet`
  --> $DIR/iter_count.rs:58:5
   |
LL |     hash_set.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_set.len()`

error: called `.iter().count()` on a `HashMap`
  --> $DIR/iter_count.rs:59:5
   |
LL |     hash_map.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_map.len()`

error: called `.iter().count()` on a `BTreeMap`
  --> $DIR/iter_count.rs:60:5
   |
LL |     b_tree_map.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_map.len()`

error: called `.iter().count()` on a `BTreeSet`
  --> $DIR/iter_count.rs:61:5
   |
LL |     b_tree_set.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_set.len()`

error: called `.iter().count()` on a `LinkedList`
  --> $DIR/iter_count.rs:62:5
   |
LL |     linked_list.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `linked_list.len()`

error: called `.iter().count()` on a `BinaryHeap`
  --> $DIR/iter_count.rs:63:5
   |
LL |     binary_heap.iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `binary_heap.len()`

error: called `.iter_mut().count()` on a `Vec`
  --> $DIR/iter_count.rs:65:5
   |
LL |     vec.iter_mut().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec.len()`

error: called `.iter_mut().count()` on a `slice`
  --> $DIR/iter_count.rs:66:6
   |
LL |     &vec[..].iter_mut().count();
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec[..].len()`

error: called `.iter_mut().count()` on a `VecDeque`
  --> $DIR/iter_count.rs:67:5
   |
LL |     vec_deque.iter_mut().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec_deque.len()`

error: called `.iter_mut().count()` on a `HashMap`
  --> $DIR/iter_count.rs:68:5
   |
LL |     hash_map.iter_mut().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_map.len()`

error: called `.iter_mut().count()` on a `BTreeMap`
  --> $DIR/iter_count.rs:69:5
   |
LL |     b_tree_map.iter_mut().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_map.len()`

error: called `.iter_mut().count()` on a `LinkedList`
  --> $DIR/iter_count.rs:70:5
   |
LL |     linked_list.iter_mut().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `linked_list.len()`

error: called `.into_iter().count()` on a `slice`
  --> $DIR/iter_count.rs:72:6
   |
LL |     &vec[..].into_iter().count();
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec[..].len()`

error: called `.into_iter().count()` on a `Vec`
  --> $DIR/iter_count.rs:73:5
   |
LL |     vec.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec.len()`

error: called `.into_iter().count()` on a `VecDeque`
  --> $DIR/iter_count.rs:74:5
   |
LL |     vec_deque.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `vec_deque.len()`

error: called `.into_iter().count()` on a `HashSet`
  --> $DIR/iter_count.rs:75:5
   |
LL |     hash_set.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_set.len()`

error: called `.into_iter().count()` on a `HashMap`
  --> $DIR/iter_count.rs:76:5
   |
LL |     hash_map.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `hash_map.len()`

error: called `.into_iter().count()` on a `BTreeMap`
  --> $DIR/iter_count.rs:77:5
   |
LL |     b_tree_map.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_map.len()`

error: called `.into_iter().count()` on a `BTreeSet`
  --> $DIR/iter_count.rs:78:5
   |
LL |     b_tree_set.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `b_tree_set.len()`

error: called `.into_iter().count()` on a `LinkedList`
  --> $DIR/iter_count.rs:79:5
   |
LL |     linked_list.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `linked_list.len()`

error: called `.into_iter().count()` on a `BinaryHeap`
  --> $DIR/iter_count.rs:80:5
   |
LL |     binary_heap.into_iter().count();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `binary_heap.len()`

error: aborting due to 25 previous errors