]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive.stderr
Merge pull request #3291 from JoshMcguigan/cmp_owned-3289
[rust.git] / tests / ui / derive.stderr
1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2   --> $DIR/derive.rs:27:10
3    |
4 27 | #[derive(Hash)]
5    |          ^^^^
6    |
7    = note: #[deny(clippy::derive_hash_xor_eq)] on by default
8 note: `PartialEq` implemented here
9   --> $DIR/derive.rs:30:1
10    |
11 30 | / impl PartialEq for Bar {
12 31 | |     fn eq(&self, _: &Bar) -> bool { true }
13 32 | | }
14    | |_^
15
16 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
17   --> $DIR/derive.rs:34:10
18    |
19 34 | #[derive(Hash)]
20    |          ^^^^
21    |
22 note: `PartialEq` implemented here
23   --> $DIR/derive.rs:37:1
24    |
25 37 | / impl PartialEq<Baz> for Baz {
26 38 | |     fn eq(&self, _: &Baz) -> bool { true }
27 39 | | }
28    | |_^
29
30 error: you are implementing `Hash` explicitly but have derived `PartialEq`
31   --> $DIR/derive.rs:44:1
32    |
33 44 | / impl Hash for Bah {
34 45 | |     fn hash<H: Hasher>(&self, _: &mut H) {}
35 46 | | }
36    | |_^
37    |
38 note: `PartialEq` implemented here
39   --> $DIR/derive.rs:41:10
40    |
41 41 | #[derive(PartialEq)]
42    |          ^^^^^^^^^
43
44 error: you are implementing `Clone` explicitly on a `Copy` type
45   --> $DIR/derive.rs:51:1
46    |
47 51 | / impl Clone for Qux {
48 52 | |     fn clone(&self) -> Self { Qux }
49 53 | | }
50    | |_^
51    |
52    = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
53 note: consider deriving `Clone` or removing `Copy`
54   --> $DIR/derive.rs:51:1
55    |
56 51 | / impl Clone for Qux {
57 52 | |     fn clone(&self) -> Self { Qux }
58 53 | | }
59    | |_^
60
61 error: you are implementing `Clone` explicitly on a `Copy` type
62   --> $DIR/derive.rs:75:1
63    |
64 75 | / impl<'a> Clone for Lt<'a> {
65 76 | |     fn clone(&self) -> Self { unimplemented!() }
66 77 | | }
67    | |_^
68    |
69 note: consider deriving `Clone` or removing `Copy`
70   --> $DIR/derive.rs:75:1
71    |
72 75 | / impl<'a> Clone for Lt<'a> {
73 76 | |     fn clone(&self) -> Self { unimplemented!() }
74 77 | | }
75    | |_^
76
77 error: you are implementing `Clone` explicitly on a `Copy` type
78   --> $DIR/derive.rs:85:1
79    |
80 85 | / impl Clone for BigArray {
81 86 | |     fn clone(&self) -> Self { unimplemented!() }
82 87 | | }
83    | |_^
84    |
85 note: consider deriving `Clone` or removing `Copy`
86   --> $DIR/derive.rs:85:1
87    |
88 85 | / impl Clone for BigArray {
89 86 | |     fn clone(&self) -> Self { unimplemented!() }
90 87 | | }
91    | |_^
92
93 error: you are implementing `Clone` explicitly on a `Copy` type
94   --> $DIR/derive.rs:95:1
95    |
96 95 | / impl Clone for FnPtr {
97 96 | |     fn clone(&self) -> Self { unimplemented!() }
98 97 | | }
99    | |_^
100    |
101 note: consider deriving `Clone` or removing `Copy`
102   --> $DIR/derive.rs:95:1
103    |
104 95 | / impl Clone for FnPtr {
105 96 | |     fn clone(&self) -> Self { unimplemented!() }
106 97 | | }
107    | |_^
108
109 error: aborting due to 7 previous errors
110