summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/derive_ord_xor_partial_ord.stderr
blob: baf8341aba908d1b409e60000241a4496d9b446e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
  --> $DIR/derive_ord_xor_partial_ord.rs:21:10
   |
LL | #[derive(Ord, PartialEq, Eq)]
   |          ^^^
   |
   = note: `-D clippy::derive-ord-xor-partial-ord` implied by `-D warnings`
note: `PartialOrd` implemented here
  --> $DIR/derive_ord_xor_partial_ord.rs:24:1
   |
LL | impl PartialOrd for DeriveOrd {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
  --> $DIR/derive_ord_xor_partial_ord.rs:30:10
   |
LL | #[derive(Ord, PartialEq, Eq)]
   |          ^^^
   |
note: `PartialOrd` implemented here
  --> $DIR/derive_ord_xor_partial_ord.rs:33:1
   |
LL | impl PartialOrd<DeriveOrdWithExplicitTypeVariable> for DeriveOrdWithExplicitTypeVariable {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are implementing `Ord` explicitly but have derived `PartialOrd`
  --> $DIR/derive_ord_xor_partial_ord.rs:42:1
   |
LL | / impl std::cmp::Ord for DerivePartialOrd {
LL | |     fn cmp(&self, other: &Self) -> Ordering {
LL | |         Ordering::Less
LL | |     }
LL | | }
   | |_^
   |
note: `PartialOrd` implemented here
  --> $DIR/derive_ord_xor_partial_ord.rs:39:10
   |
LL | #[derive(PartialOrd, PartialEq, Eq)]
   |          ^^^^^^^^^^
   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are implementing `Ord` explicitly but have derived `PartialOrd`
  --> $DIR/derive_ord_xor_partial_ord.rs:62:5
   |
LL | /     impl Ord for DerivePartialOrdInUseOrd {
LL | |         fn cmp(&self, other: &Self) -> Ordering {
LL | |             Ordering::Less
LL | |         }
LL | |     }
   | |_____^
   |
note: `PartialOrd` implemented here
  --> $DIR/derive_ord_xor_partial_ord.rs:59:14
   |
LL |     #[derive(PartialOrd, PartialEq, Eq)]
   |              ^^^^^^^^^^
   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 4 previous errors