]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive.stderr
Auto merge of #3635 - matthiaskrgr:revert_random_state_3603, r=xfix
[rust.git] / tests / ui / derive.stderr
1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2   --> $DIR/derive.rs:25: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:28: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:34:10
20    |
21 LL | #[derive(Hash)]
22    |          ^^^^
23    |
24 note: `PartialEq` implemented here
25   --> $DIR/derive.rs:37: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:46: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:43:10
44    |
45 LL | #[derive(PartialEq)]
46    |          ^^^^^^^^^
47
48 error: you are implementing `Clone` explicitly on a `Copy` type
49   --> $DIR/derive.rs:53:1
50    |
51 LL | / impl Clone for Qux {
52 LL | |     fn clone(&self) -> Self {
53 LL | |         Qux
54 LL | |     }
55 LL | | }
56    | |_^
57    |
58    = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
59 note: consider deriving `Clone` or removing `Copy`
60   --> $DIR/derive.rs:53:1
61    |
62 LL | / impl Clone for Qux {
63 LL | |     fn clone(&self) -> Self {
64 LL | |         Qux
65 LL | |     }
66 LL | | }
67    | |_^
68
69 error: you are implementing `Clone` explicitly on a `Copy` type
70   --> $DIR/derive.rs:77:1
71    |
72 LL | / impl<'a> Clone for Lt<'a> {
73 LL | |     fn clone(&self) -> Self {
74 LL | |         unimplemented!()
75 LL | |     }
76 LL | | }
77    | |_^
78    |
79 note: consider deriving `Clone` or removing `Copy`
80   --> $DIR/derive.rs:77:1
81    |
82 LL | / impl<'a> Clone for Lt<'a> {
83 LL | |     fn clone(&self) -> Self {
84 LL | |         unimplemented!()
85 LL | |     }
86 LL | | }
87    | |_^
88
89 error: you are implementing `Clone` explicitly on a `Copy` type
90   --> $DIR/derive.rs:89:1
91    |
92 LL | / impl Clone for BigArray {
93 LL | |     fn clone(&self) -> Self {
94 LL | |         unimplemented!()
95 LL | |     }
96 LL | | }
97    | |_^
98    |
99 note: consider deriving `Clone` or removing `Copy`
100   --> $DIR/derive.rs:89:1
101    |
102 LL | / impl Clone for BigArray {
103 LL | |     fn clone(&self) -> Self {
104 LL | |         unimplemented!()
105 LL | |     }
106 LL | | }
107    | |_^
108
109 error: you are implementing `Clone` explicitly on a `Copy` type
110   --> $DIR/derive.rs:101:1
111    |
112 LL | / impl Clone for FnPtr {
113 LL | |     fn clone(&self) -> Self {
114 LL | |         unimplemented!()
115 LL | |     }
116 LL | | }
117    | |_^
118    |
119 note: consider deriving `Clone` or removing `Copy`
120   --> $DIR/derive.rs:101:1
121    |
122 LL | / impl Clone for FnPtr {
123 LL | |     fn clone(&self) -> Self {
124 LL | |         unimplemented!()
125 LL | |     }
126 LL | | }
127    | |_^
128
129 error: aborting due to 7 previous errors
130