]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive.stderr
Merge branch 'master' into rustfmt_tests
[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 25 | #[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 28 | / impl PartialEq for Bar {
12 29 | |     fn eq(&self, _: &Bar) -> bool {
13 30 | |         true
14 31 | |     }
15 32 | | }
16    | |_^
17
18 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
19   --> $DIR/derive.rs:34:10
20    |
21 34 | #[derive(Hash)]
22    |          ^^^^
23    |
24 note: `PartialEq` implemented here
25   --> $DIR/derive.rs:37:1
26    |
27 37 | / impl PartialEq<Baz> for Baz {
28 38 | |     fn eq(&self, _: &Baz) -> bool {
29 39 | |         true
30 40 | |     }
31 41 | | }
32    | |_^
33
34 error: you are implementing `Hash` explicitly but have derived `PartialEq`
35   --> $DIR/derive.rs:46:1
36    |
37 46 | / impl Hash for Bah {
38 47 | |     fn hash<H: Hasher>(&self, _: &mut H) {}
39 48 | | }
40    | |_^
41    |
42 note: `PartialEq` implemented here
43   --> $DIR/derive.rs:43:10
44    |
45 43 | #[derive(PartialEq)]
46    |          ^^^^^^^^^
47
48 error: you are implementing `Clone` explicitly on a `Copy` type
49   --> $DIR/derive.rs:53:1
50    |
51 53 | / impl Clone for Qux {
52 54 | |     fn clone(&self) -> Self {
53 55 | |         Qux
54 56 | |     }
55 57 | | }
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 53 | / impl Clone for Qux {
63 54 | |     fn clone(&self) -> Self {
64 55 | |         Qux
65 56 | |     }
66 57 | | }
67    | |_^
68
69 error: you are implementing `Clone` explicitly on a `Copy` type
70   --> $DIR/derive.rs:77:1
71    |
72 77 | / impl<'a> Clone for Lt<'a> {
73 78 | |     fn clone(&self) -> Self {
74 79 | |         unimplemented!()
75 80 | |     }
76 81 | | }
77    | |_^
78    |
79 note: consider deriving `Clone` or removing `Copy`
80   --> $DIR/derive.rs:77:1
81    |
82 77 | / impl<'a> Clone for Lt<'a> {
83 78 | |     fn clone(&self) -> Self {
84 79 | |         unimplemented!()
85 80 | |     }
86 81 | | }
87    | |_^
88
89 error: you are implementing `Clone` explicitly on a `Copy` type
90   --> $DIR/derive.rs:89:1
91    |
92 89 | / impl Clone for BigArray {
93 90 | |     fn clone(&self) -> Self {
94 91 | |         unimplemented!()
95 92 | |     }
96 93 | | }
97    | |_^
98    |
99 note: consider deriving `Clone` or removing `Copy`
100   --> $DIR/derive.rs:89:1
101    |
102 89 | / impl Clone for BigArray {
103 90 | |     fn clone(&self) -> Self {
104 91 | |         unimplemented!()
105 92 | |     }
106 93 | | }
107    | |_^
108
109 error: you are implementing `Clone` explicitly on a `Copy` type
110    --> $DIR/derive.rs:101:1
111     |
112 101 | / impl Clone for FnPtr {
113 102 | |     fn clone(&self) -> Self {
114 103 | |         unimplemented!()
115 104 | |     }
116 105 | | }
117     | |_^
118     |
119 note: consider deriving `Clone` or removing `Copy`
120    --> $DIR/derive.rs:101:1
121     |
122 101 | / impl Clone for FnPtr {
123 102 | |     fn clone(&self) -> Self {
124 103 | |         unimplemented!()
125 104 | |     }
126 105 | | }
127     | |_^
128
129 error: aborting due to 7 previous errors
130