summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/iter_over_hash_type.stderr
blob: cf420fb8e996ead698dbe3f6a6963c451fa52d14 (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
error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:18:5
   |
LL | /     for x in &hash_set {
LL | |         let _ = x;
LL | |     }
   | |_____^
   |
   = note: `-D clippy::iter-over-hash-type` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::iter_over_hash_type)]`

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:21:5
   |
LL | /     for x in hash_set.iter() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:24:5
   |
LL | /     for x in hash_set.clone() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:27:5
   |
LL | /     for x in hash_set.drain() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:32:5
   |
LL | /     for (x, y) in &hash_map {
LL | |         let _ = (x, y);
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:35:5
   |
LL | /     for x in hash_map.keys() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:38:5
   |
LL | /     for x in hash_map.values() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:41:5
   |
LL | /     for x in hash_map.values_mut() {
LL | |         *x += 1;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:44:5
   |
LL | /     for x in hash_map.iter() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:47:5
   |
LL | /     for x in hash_map.clone() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:50:5
   |
LL | /     for x in hash_map.drain() {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:55:5
   |
LL | /     for x in fx_hash_set {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: iteration over unordered hash-based type
  --> $DIR/iter_over_hash_type.rs:58:5
   |
LL | /     for x in fx_hash_map {
LL | |         let _ = x;
LL | |     }
   | |_____^

error: aborting due to 13 previous errors