1
- error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2
- --> $DIR/derive.rs:16:10
3
- |
4
- LL | #[derive(Hash)]
5
- | ^^^^
6
- |
7
- = note: `#[deny(clippy::derive_hash_xor_eq)]` on by default
8
- note: `PartialEq` implemented here
9
- --> $DIR/derive.rs:19:1
10
- |
11
- LL | / impl PartialEq for Bar {
12
- LL | | fn eq(&self, _: &Bar) -> bool {
13
- LL | | true
14
- LL | | }
15
- LL | | }
16
- | |_^
17
-
18
- error: you are deriving `Hash` but have implemented `PartialEq` explicitly
19
- --> $DIR/derive.rs:25:10
20
- |
21
- LL | #[derive(Hash)]
22
- | ^^^^
23
- |
24
- note: `PartialEq` implemented here
25
- --> $DIR/derive.rs:28:1
26
- |
27
- LL | / impl PartialEq<Baz> for Baz {
28
- LL | | fn eq(&self, _: &Baz) -> bool {
29
- LL | | true
30
- LL | | }
31
- LL | | }
32
- | |_^
33
-
34
- error: you are implementing `Hash` explicitly but have derived `PartialEq`
35
- --> $DIR/derive.rs:37:1
36
- |
37
- LL | / impl Hash for Bah {
38
- LL | | fn hash<H: Hasher>(&self, _: &mut H) {}
39
- LL | | }
40
- | |_^
41
- |
42
- note: `PartialEq` implemented here
43
- --> $DIR/derive.rs:34:10
44
- |
45
- LL | #[derive(PartialEq)]
46
- | ^^^^^^^^^
47
-
48
1
error: you are implementing `Clone` explicitly on a `Copy` type
49
- --> $DIR/derive.rs:44 :1
2
+ --> $DIR/derive.rs:8 :1
50
3
|
51
4
LL | / impl Clone for Qux {
52
5
LL | | fn clone(&self) -> Self {
@@ -57,7 +10,7 @@ LL | | }
57
10
|
58
11
= note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
59
12
note: consider deriving `Clone` or removing `Copy`
60
- --> $DIR/derive.rs:44 :1
13
+ --> $DIR/derive.rs:8 :1
61
14
|
62
15
LL | / impl Clone for Qux {
63
16
LL | | fn clone(&self) -> Self {
@@ -67,7 +20,7 @@ LL | | }
67
20
| |_^
68
21
69
22
error: you are implementing `Clone` explicitly on a `Copy` type
70
- --> $DIR/derive.rs:68 :1
23
+ --> $DIR/derive.rs:32 :1
71
24
|
72
25
LL | / impl<'a> Clone for Lt<'a> {
73
26
LL | | fn clone(&self) -> Self {
@@ -77,7 +30,7 @@ LL | | }
77
30
| |_^
78
31
|
79
32
note: consider deriving `Clone` or removing `Copy`
80
- --> $DIR/derive.rs:68 :1
33
+ --> $DIR/derive.rs:32 :1
81
34
|
82
35
LL | / impl<'a> Clone for Lt<'a> {
83
36
LL | | fn clone(&self) -> Self {
@@ -87,7 +40,7 @@ LL | | }
87
40
| |_^
88
41
89
42
error: you are implementing `Clone` explicitly on a `Copy` type
90
- --> $DIR/derive.rs:80 :1
43
+ --> $DIR/derive.rs:44 :1
91
44
|
92
45
LL | / impl Clone for BigArray {
93
46
LL | | fn clone(&self) -> Self {
@@ -97,7 +50,7 @@ LL | | }
97
50
| |_^
98
51
|
99
52
note: consider deriving `Clone` or removing `Copy`
100
- --> $DIR/derive.rs:80 :1
53
+ --> $DIR/derive.rs:44 :1
101
54
|
102
55
LL | / impl Clone for BigArray {
103
56
LL | | fn clone(&self) -> Self {
@@ -107,7 +60,7 @@ LL | | }
107
60
| |_^
108
61
109
62
error: you are implementing `Clone` explicitly on a `Copy` type
110
- --> $DIR/derive.rs:92 :1
63
+ --> $DIR/derive.rs:56 :1
111
64
|
112
65
LL | / impl Clone for FnPtr {
113
66
LL | | fn clone(&self) -> Self {
@@ -117,7 +70,7 @@ LL | | }
117
70
| |_^
118
71
|
119
72
note: consider deriving `Clone` or removing `Copy`
120
- --> $DIR/derive.rs:92 :1
73
+ --> $DIR/derive.rs:56 :1
121
74
|
122
75
LL | / impl Clone for FnPtr {
123
76
LL | | fn clone(&self) -> Self {
@@ -126,5 +79,5 @@ LL | | }
126
79
LL | | }
127
80
| |_^
128
81
129
- error: aborting due to 7 previous errors
82
+ error: aborting due to 4 previous errors
130
83
0 commit comments