]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/derive_ord_xor_partial_ord.stderr
Merge branch 'master' into hooks
[rust.git] / src / tools / clippy / tests / ui / derive_ord_xor_partial_ord.stderr
1 error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
2   --> $DIR/derive_ord_xor_partial_ord.rs:20:10
3    |
4 LL | #[derive(Ord, PartialEq, Eq)]
5    |          ^^^
6    |
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:23:1
10    |
11 LL | / impl PartialOrd for DeriveOrd {
12 LL | |     fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
13 LL | |         Some(other.cmp(self))
14 LL | |     }
15 LL | | }
16    | |_^
17    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
18
19 error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
20   --> $DIR/derive_ord_xor_partial_ord.rs:29:10
21    |
22 LL | #[derive(Ord, PartialEq, Eq)]
23    |          ^^^
24    |
25 note: `PartialOrd` implemented here
26   --> $DIR/derive_ord_xor_partial_ord.rs:32:1
27    |
28 LL | / impl PartialOrd<DeriveOrdWithExplicitTypeVariable> for DeriveOrdWithExplicitTypeVariable {
29 LL | |     fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
30 LL | |         Some(other.cmp(self))
31 LL | |     }
32 LL | | }
33    | |_^
34    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: you are implementing `Ord` explicitly but have derived `PartialOrd`
37   --> $DIR/derive_ord_xor_partial_ord.rs:41:1
38    |
39 LL | / impl std::cmp::Ord for DerivePartialOrd {
40 LL | |     fn cmp(&self, other: &Self) -> Ordering {
41 LL | |         Ordering::Less
42 LL | |     }
43 LL | | }
44    | |_^
45    |
46 note: `PartialOrd` implemented here
47   --> $DIR/derive_ord_xor_partial_ord.rs:38:10
48    |
49 LL | #[derive(PartialOrd, PartialEq, Eq)]
50    |          ^^^^^^^^^^
51    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
52
53 error: you are implementing `Ord` explicitly but have derived `PartialOrd`
54   --> $DIR/derive_ord_xor_partial_ord.rs:61:5
55    |
56 LL | /     impl Ord for DerivePartialOrdInUseOrd {
57 LL | |         fn cmp(&self, other: &Self) -> Ordering {
58 LL | |             Ordering::Less
59 LL | |         }
60 LL | |     }
61    | |_____^
62    |
63 note: `PartialOrd` implemented here
64   --> $DIR/derive_ord_xor_partial_ord.rs:58:14
65    |
66 LL |     #[derive(PartialOrd, PartialEq, Eq)]
67    |              ^^^^^^^^^^
68    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
69
70 error: aborting due to 4 previous errors
71