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