rust-clippy/tests/ui/derive.stderr

131 lines
2.9 KiB
Text
Raw Normal View History

error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:25:10
|
2018-12-10 05:27:19 +00:00
25 | #[derive(Hash)]
| ^^^^
|
= note: #[deny(clippy::derive_hash_xor_eq)] on by default
note: `PartialEq` implemented here
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:28:1
|
2018-12-10 05:27:19 +00:00
28 | / impl PartialEq for Bar {
29 | | fn eq(&self, _: &Bar) -> bool {
30 | | true
31 | | }
2018-10-06 16:18:06 +00:00
32 | | }
| |_^
error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2018-10-06 16:18:06 +00:00
--> $DIR/derive.rs:34:10
|
2018-10-06 16:18:06 +00:00
34 | #[derive(Hash)]
| ^^^^
|
note: `PartialEq` implemented here
2018-10-06 16:18:06 +00:00
--> $DIR/derive.rs:37:1
|
2018-10-06 16:18:06 +00:00
37 | / impl PartialEq<Baz> for Baz {
2018-12-10 05:27:19 +00:00
38 | | fn eq(&self, _: &Baz) -> bool {
39 | | true
40 | | }
41 | | }
| |_^
error: you are implementing `Hash` explicitly but have derived `PartialEq`
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:46:1
|
2018-12-10 05:27:19 +00:00
46 | / impl Hash for Bah {
47 | | fn hash<H: Hasher>(&self, _: &mut H) {}
48 | | }
| |_^
|
note: `PartialEq` implemented here
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:43:10
|
2018-12-10 05:27:19 +00:00
43 | #[derive(PartialEq)]
| ^^^^^^^^^
error: you are implementing `Clone` explicitly on a `Copy` type
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:53:1
|
2018-12-10 05:27:19 +00:00
53 | / impl Clone for Qux {
54 | | fn clone(&self) -> Self {
55 | | Qux
56 | | }
57 | | }
| |_^
|
= note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
note: consider deriving `Clone` or removing `Copy`
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:53:1
|
2018-12-10 05:27:19 +00:00
53 | / impl Clone for Qux {
54 | | fn clone(&self) -> Self {
55 | | Qux
56 | | }
57 | | }
| |_^
2017-09-13 13:34:04 +00:00
error: you are implementing `Clone` explicitly on a `Copy` type
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:77:1
2017-09-13 13:34:04 +00:00
|
2018-12-10 05:27:19 +00:00
77 | / impl<'a> Clone for Lt<'a> {
78 | | fn clone(&self) -> Self {
79 | | unimplemented!()
80 | | }
81 | | }
2017-09-13 13:34:04 +00:00
| |_^
|
note: consider deriving `Clone` or removing `Copy`
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:77:1
2017-09-13 13:34:04 +00:00
|
2018-12-10 05:27:19 +00:00
77 | / impl<'a> Clone for Lt<'a> {
78 | | fn clone(&self) -> Self {
79 | | unimplemented!()
80 | | }
81 | | }
2017-09-13 13:34:04 +00:00
| |_^
error: you are implementing `Clone` explicitly on a `Copy` type
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:89:1
2017-09-13 13:34:04 +00:00
|
2018-12-10 05:27:19 +00:00
89 | / impl Clone for BigArray {
90 | | fn clone(&self) -> Self {
91 | | unimplemented!()
92 | | }
93 | | }
2017-09-13 13:34:04 +00:00
| |_^
|
note: consider deriving `Clone` or removing `Copy`
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:89:1
2017-09-13 13:34:04 +00:00
|
2018-12-10 05:27:19 +00:00
89 | / impl Clone for BigArray {
90 | | fn clone(&self) -> Self {
91 | | unimplemented!()
92 | | }
93 | | }
2017-09-13 13:34:04 +00:00
| |_^
2018-10-06 16:18:06 +00:00
error: you are implementing `Clone` explicitly on a `Copy` type
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:101:1
|
101 | / impl Clone for FnPtr {
102 | | fn clone(&self) -> Self {
103 | | unimplemented!()
104 | | }
105 | | }
| |_^
|
2018-10-06 16:18:06 +00:00
note: consider deriving `Clone` or removing `Copy`
2018-12-10 05:27:19 +00:00
--> $DIR/derive.rs:101:1
|
101 | / impl Clone for FnPtr {
102 | | fn clone(&self) -> Self {
103 | | unimplemented!()
104 | | }
105 | | }
| |_^
2018-10-06 16:18:06 +00:00
2018-01-16 16:06:27 +00:00
error: aborting due to 7 previous errors