]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/derive.stderr
New upstream version 1.28.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / derive.stderr
CommitLineData
ea8adc8c
XL
1error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2 --> $DIR/derive.rs:17:10
3 |
417 | #[derive(Hash)]
5 | ^^^^
6 |
0531ce1d 7 = note: #[deny(derive_hash_xor_eq)] on by default
ea8adc8c
XL
8note: `PartialEq` implemented here
9 --> $DIR/derive.rs:20:1
10 |
1120 | / impl PartialEq for Bar {
1221 | | fn eq(&self, _: &Bar) -> bool { true }
1322 | | }
14 | |_^
15
16error: you are deriving `Hash` but have implemented `PartialEq` explicitly
17 --> $DIR/derive.rs:24:10
18 |
1924 | #[derive(Hash)]
20 | ^^^^
21 |
22note: `PartialEq` implemented here
23 --> $DIR/derive.rs:27:1
24 |
2527 | / impl PartialEq<Baz> for Baz {
2628 | | fn eq(&self, _: &Baz) -> bool { true }
2729 | | }
28 | |_^
29
30error: you are implementing `Hash` explicitly but have derived `PartialEq`
31 --> $DIR/derive.rs:34:1
32 |
3334 | / impl Hash for Bah {
3435 | | fn hash<H: Hasher>(&self, _: &mut H) {}
3536 | | }
36 | |_^
37 |
38note: `PartialEq` implemented here
39 --> $DIR/derive.rs:31:10
40 |
4131 | #[derive(PartialEq)]
42 | ^^^^^^^^^
43
44error: you are implementing `Clone` explicitly on a `Copy` type
45 --> $DIR/derive.rs:41:1
46 |
4741 | / impl Clone for Qux {
4842 | | fn clone(&self) -> Self { Qux }
4943 | | }
50 | |_^
51 |
52 = note: `-D expl-impl-clone-on-copy` implied by `-D warnings`
53note: consider deriving `Clone` or removing `Copy`
54 --> $DIR/derive.rs:41:1
55 |
5641 | / impl Clone for Qux {
5742 | | fn clone(&self) -> Self { Qux }
5843 | | }
59 | |_^
60
61error: you are implementing `Clone` explicitly on a `Copy` type
62 --> $DIR/derive.rs:65:1
63 |
6465 | / impl<'a> Clone for Lt<'a> {
6566 | | fn clone(&self) -> Self { unimplemented!() }
6667 | | }
67 | |_^
68 |
69note: consider deriving `Clone` or removing `Copy`
70 --> $DIR/derive.rs:65:1
71 |
7265 | / impl<'a> Clone for Lt<'a> {
7366 | | fn clone(&self) -> Self { unimplemented!() }
7467 | | }
75 | |_^
76
abe05a73
XL
77error: you are implementing `Clone` explicitly on a `Copy` type
78 --> $DIR/derive.rs:75:1
79 |
8075 | / impl Clone for BigArray {
8176 | | fn clone(&self) -> Self { unimplemented!() }
8277 | | }
83 | |_^
84 |
85note: consider deriving `Clone` or removing `Copy`
86 --> $DIR/derive.rs:75:1
87 |
8875 | / impl Clone for BigArray {
8976 | | fn clone(&self) -> Self { unimplemented!() }
9077 | | }
91 | |_^
92
93error: you are implementing `Clone` explicitly on a `Copy` type
94 --> $DIR/derive.rs:85:1
95 |
9685 | / impl Clone for FnPtr {
9786 | | fn clone(&self) -> Self { unimplemented!() }
9887 | | }
99 | |_^
100 |
101note: consider deriving `Clone` or removing `Copy`
102 --> $DIR/derive.rs:85:1
103 |
10485 | / impl Clone for FnPtr {
10586 | | fn clone(&self) -> Self { unimplemented!() }
10687 | | }
107 | |_^
ea8adc8c 108
2c00a5a8
XL
109error: aborting due to 7 previous errors
110