2017-02-07 14:05:30 -06:00
|
|
|
error: you are deriving `Hash` but have implemented `PartialEq` explicitly
|
|
|
|
--> $DIR/derive.rs:18:10
|
|
|
|
|
|
|
|
|
18 | #[derive(Hash)]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: #[deny(derive_hash_xor_eq)] implied by #[deny(warnings)]
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/derive.rs:6:9
|
|
|
|
|
|
|
|
|
6 | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
note: `PartialEq` implemented here
|
|
|
|
--> $DIR/derive.rs:22:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
22 | / impl PartialEq for Bar {
|
2017-02-07 14:05:30 -06:00
|
|
|
23 | | fn eq(&self, _: &Bar) -> bool { true }
|
|
|
|
24 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you are deriving `Hash` but have implemented `PartialEq` explicitly
|
|
|
|
--> $DIR/derive.rs:26:10
|
|
|
|
|
|
|
|
|
26 | #[derive(Hash)]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: #[deny(derive_hash_xor_eq)] implied by #[deny(warnings)]
|
|
|
|
note: `PartialEq` implemented here
|
|
|
|
--> $DIR/derive.rs:30:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
30 | / impl PartialEq<Baz> for Baz {
|
2017-02-07 14:05:30 -06:00
|
|
|
31 | | fn eq(&self, _: &Baz) -> bool { true }
|
|
|
|
32 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you are implementing `Hash` explicitly but have derived `PartialEq`
|
|
|
|
--> $DIR/derive.rs:37:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
37 | / impl Hash for Bah {
|
2017-02-08 07:58:07 -06:00
|
|
|
38 | |
|
2017-02-07 14:05:30 -06:00
|
|
|
39 | | fn hash<H: Hasher>(&self, _: &mut H) {}
|
|
|
|
40 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(derive_hash_xor_eq)] implied by #[deny(warnings)]
|
|
|
|
note: `PartialEq` implemented here
|
|
|
|
--> $DIR/derive.rs:34:10
|
|
|
|
|
|
|
|
|
34 | #[derive(PartialEq)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: you are implementing `Clone` explicitly on a `Copy` type
|
|
|
|
--> $DIR/derive.rs:45:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
45 | / impl Clone for Qux {
|
2017-02-08 07:58:07 -06:00
|
|
|
46 | |
|
2017-02-07 14:05:30 -06:00
|
|
|
47 | | fn clone(&self) -> Self { Qux }
|
|
|
|
48 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(expl_impl_clone_on_copy)] implied by #[deny(warnings)]
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/derive.rs:6:9
|
|
|
|
|
|
|
|
|
6 | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
note: consider deriving `Clone` or removing `Copy`
|
|
|
|
--> $DIR/derive.rs:45:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
45 | / impl Clone for Qux {
|
2017-02-08 07:58:07 -06:00
|
|
|
46 | |
|
2017-02-07 14:05:30 -06:00
|
|
|
47 | | fn clone(&self) -> Self { Qux }
|
|
|
|
48 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you are implementing `Clone` explicitly on a `Copy` type
|
|
|
|
--> $DIR/derive.rs:70:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
70 | / impl<'a> Clone for Lt<'a> {
|
2017-02-08 07:58:07 -06:00
|
|
|
71 | |
|
2017-02-07 14:05:30 -06:00
|
|
|
72 | | fn clone(&self) -> Self { unimplemented!() }
|
|
|
|
73 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(expl_impl_clone_on_copy)] implied by #[deny(warnings)]
|
|
|
|
note: consider deriving `Clone` or removing `Copy`
|
|
|
|
--> $DIR/derive.rs:70:1
|
|
|
|
|
|
2017-04-23 08:25:22 -05:00
|
|
|
70 | / impl<'a> Clone for Lt<'a> {
|
2017-02-08 07:58:07 -06:00
|
|
|
71 | |
|
2017-02-07 14:05:30 -06:00
|
|
|
72 | | fn clone(&self) -> Self { unimplemented!() }
|
|
|
|
73 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|