1 error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
2 --> $DIR/derive_ord_xor_partial_ord.rs:21:10
4 LL | #[derive(Ord, PartialEq, Eq)]
7 = note: `-D clippy::derive-ord-xor-partial-ord` implied by `-D warnings`
8 note: `PartialOrd` implemented here
9 --> $DIR/derive_ord_xor_partial_ord.rs:24:1
11 LL | / impl PartialOrd for DeriveOrd {
12 LL | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
13 LL | | Some(other.cmp(self))
17 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
19 error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
20 --> $DIR/derive_ord_xor_partial_ord.rs:30:10
22 LL | #[derive(Ord, PartialEq, Eq)]
25 note: `PartialOrd` implemented here
26 --> $DIR/derive_ord_xor_partial_ord.rs:33:1
28 LL | / impl PartialOrd<DeriveOrdWithExplicitTypeVariable> for DeriveOrdWithExplicitTypeVariable {
29 LL | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
30 LL | | Some(other.cmp(self))
34 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
36 error: you are implementing `Ord` explicitly but have derived `PartialOrd`
37 --> $DIR/derive_ord_xor_partial_ord.rs:42:1
39 LL | / impl std::cmp::Ord for DerivePartialOrd {
40 LL | | fn cmp(&self, other: &Self) -> Ordering {
46 note: `PartialOrd` implemented here
47 --> $DIR/derive_ord_xor_partial_ord.rs:39:10
49 LL | #[derive(PartialOrd, PartialEq, Eq)]
51 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
53 error: you are implementing `Ord` explicitly but have derived `PartialOrd`
54 --> $DIR/derive_ord_xor_partial_ord.rs:62:5
56 LL | / impl Ord for DerivePartialOrdInUseOrd {
57 LL | | fn cmp(&self, other: &Self) -> Ordering {
63 note: `PartialOrd` implemented here
64 --> $DIR/derive_ord_xor_partial_ord.rs:59:14
66 LL | #[derive(PartialOrd, PartialEq, Eq)]
68 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
70 error: aborting due to 4 previous errors