]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/derive_hash_xor_eq.stderr
Rollup merge of #85177 - tspiteri:wrapping-bits, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / derive_hash_xor_eq.stderr
1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2   --> $DIR/derive_hash_xor_eq.rs:10: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_hash_xor_eq.rs:13:1
10    |
11 LL | / impl PartialEq for Bar {
12 LL | |     fn eq(&self, _: &Bar) -> bool {
13 LL | |         true
14 LL | |     }
15 LL | | }
16    | |_^
17    = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
18
19 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
20   --> $DIR/derive_hash_xor_eq.rs:19:10
21    |
22 LL | #[derive(Hash)]
23    |          ^^^^
24    |
25 note: `PartialEq` implemented here
26   --> $DIR/derive_hash_xor_eq.rs:22:1
27    |
28 LL | / impl PartialEq<Baz> for Baz {
29 LL | |     fn eq(&self, _: &Baz) -> bool {
30 LL | |         true
31 LL | |     }
32 LL | | }
33    | |_^
34    = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: you are implementing `Hash` explicitly but have derived `PartialEq`
37   --> $DIR/derive_hash_xor_eq.rs:31:1
38    |
39 LL | / impl std::hash::Hash for Bah {
40 LL | |     fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}
41 LL | | }
42    | |_^
43    |
44 note: `PartialEq` implemented here
45   --> $DIR/derive_hash_xor_eq.rs:28:10
46    |
47 LL | #[derive(PartialEq)]
48    |          ^^^^^^^^^
49    = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
50
51 error: you are implementing `Hash` explicitly but have derived `PartialEq`
52   --> $DIR/derive_hash_xor_eq.rs:49:5
53    |
54 LL | /     impl Hash for Foo3 {
55 LL | |         fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}
56 LL | |     }
57    | |_____^
58    |
59 note: `PartialEq` implemented here
60   --> $DIR/derive_hash_xor_eq.rs:46:14
61    |
62 LL |     #[derive(PartialEq)]
63    |              ^^^^^^^^^
64    = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
65
66 error: aborting due to 4 previous errors
67