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