@@ -161,13 +161,7 @@ impl ::core::cmp::PartialOrd for Point {
161
161
-> ::core::option::Option<::core::cmp::Ordering> {
162
162
match ::core::cmp::PartialOrd::partial_cmp(&self.x, &other.x) {
163
163
::core::option::Option::Some(::core::cmp::Ordering::Equal) =>
164
- match ::core::cmp::PartialOrd::partial_cmp(&self.y, &other.y)
165
- {
166
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
167
- =>
168
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
169
- cmp => cmp,
170
- },
164
+ ::core::cmp::PartialOrd::partial_cmp(&self.y, &other.y),
171
165
cmp => cmp,
172
166
}
173
167
}
@@ -179,11 +173,7 @@ impl ::core::cmp::Ord for Point {
179
173
fn cmp(&self, other: &Point) -> ::core::cmp::Ordering {
180
174
match ::core::cmp::Ord::cmp(&self.x, &other.x) {
181
175
::core::cmp::Ordering::Equal =>
182
- match ::core::cmp::Ord::cmp(&self.y, &other.y) {
183
- ::core::cmp::Ordering::Equal =>
184
- ::core::cmp::Ordering::Equal,
185
- cmp => cmp,
186
- },
176
+ ::core::cmp::Ord::cmp(&self.y, &other.y),
187
177
cmp => cmp,
188
178
}
189
179
}
@@ -323,13 +313,7 @@ impl ::core::cmp::PartialOrd for Big {
323
313
&other.b7) {
324
314
::core::option::Option::Some(::core::cmp::Ordering::Equal)
325
315
=>
326
- match ::core::cmp::PartialOrd::partial_cmp(&self.b8,
327
- &other.b8) {
328
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
329
- =>
330
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
331
- cmp => cmp,
332
- },
316
+ ::core::cmp::PartialOrd::partial_cmp(&self.b8, &other.b8),
333
317
cmp => cmp,
334
318
},
335
319
cmp => cmp,
@@ -365,11 +349,7 @@ impl ::core::cmp::Ord for Big {
365
349
::core::cmp::Ordering::Equal =>
366
350
match ::core::cmp::Ord::cmp(&self.b7, &other.b7) {
367
351
::core::cmp::Ordering::Equal =>
368
- match ::core::cmp::Ord::cmp(&self.b8, &other.b8) {
369
- ::core::cmp::Ordering::Equal =>
370
- ::core::cmp::Ordering::Equal,
371
- cmp => cmp,
372
- },
352
+ ::core::cmp::Ord::cmp(&self.b8, &other.b8),
373
353
cmp => cmp,
374
354
},
375
355
cmp => cmp,
@@ -461,11 +441,7 @@ impl ::core::cmp::PartialOrd for Packed {
461
441
-> ::core::option::Option<::core::cmp::Ordering> {
462
442
let Self(__self_0_0) = *self;
463
443
let Self(__self_1_0) = *other;
464
- match ::core::cmp::PartialOrd::partial_cmp(&__self_0_0, &__self_1_0) {
465
- ::core::option::Option::Some(::core::cmp::Ordering::Equal) =>
466
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
467
- cmp => cmp,
468
- }
444
+ ::core::cmp::PartialOrd::partial_cmp(&__self_0_0, &__self_1_0)
469
445
}
470
446
}
471
447
#[automatically_derived]
@@ -475,10 +451,7 @@ impl ::core::cmp::Ord for Packed {
475
451
fn cmp(&self, other: &Packed) -> ::core::cmp::Ordering {
476
452
let Self(__self_0_0) = *self;
477
453
let Self(__self_1_0) = *other;
478
- match ::core::cmp::Ord::cmp(&__self_0_0, &__self_1_0) {
479
- ::core::cmp::Ordering::Equal => ::core::cmp::Ordering::Equal,
480
- cmp => cmp,
481
- }
454
+ ::core::cmp::Ord::cmp(&__self_0_0, &__self_1_0)
482
455
}
483
456
}
484
457
@@ -621,13 +594,7 @@ impl ::core::cmp::PartialOrd for Enum1 {
621
594
match (&*self, &*other) {
622
595
(&Enum1::Single { x: ref __self_0 }, &Enum1::Single {
623
596
x: ref __arg_1_0 }) =>
624
- match ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
625
- &*__arg_1_0) {
626
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
627
- =>
628
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
629
- cmp => cmp,
630
- },
597
+ ::core::cmp::PartialOrd::partial_cmp(&*__self_0, &*__arg_1_0),
631
598
}
632
599
}
633
600
}
@@ -639,11 +606,7 @@ impl ::core::cmp::Ord for Enum1 {
639
606
match (&*self, &*other) {
640
607
(&Enum1::Single { x: ref __self_0 }, &Enum1::Single {
641
608
x: ref __arg_1_0 }) =>
642
- match ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0) {
643
- ::core::cmp::Ordering::Equal =>
644
- ::core::cmp::Ordering::Equal,
645
- cmp => cmp,
646
- },
609
+ ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0),
647
610
}
648
611
}
649
612
}
@@ -873,26 +836,16 @@ impl ::core::cmp::PartialOrd for Mixed {
873
836
if __self_vi == __arg_1_vi {
874
837
match (&*self, &*other) {
875
838
(&Mixed::R(ref __self_0), &Mixed::R(ref __arg_1_0)) =>
876
- match ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
877
- &*__arg_1_0) {
878
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
879
- =>
880
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
881
- cmp => cmp,
882
- },
839
+ ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
840
+ &*__arg_1_0),
883
841
(&Mixed::S { d1: ref __self_0, d2: ref __self_1 },
884
842
&Mixed::S { d1: ref __arg_1_0, d2: ref __arg_1_1 }) =>
885
843
match ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
886
844
&*__arg_1_0) {
887
845
::core::option::Option::Some(::core::cmp::Ordering::Equal)
888
846
=>
889
- match ::core::cmp::PartialOrd::partial_cmp(&*__self_1,
890
- &*__arg_1_1) {
891
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
892
- =>
893
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
894
- cmp => cmp,
895
- },
847
+ ::core::cmp::PartialOrd::partial_cmp(&*__self_1,
848
+ &*__arg_1_1),
896
849
cmp => cmp,
897
850
},
898
851
_ =>
@@ -913,20 +866,12 @@ impl ::core::cmp::Ord for Mixed {
913
866
if __self_vi == __arg_1_vi {
914
867
match (&*self, &*other) {
915
868
(&Mixed::R(ref __self_0), &Mixed::R(ref __arg_1_0)) =>
916
- match ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0) {
917
- ::core::cmp::Ordering::Equal =>
918
- ::core::cmp::Ordering::Equal,
919
- cmp => cmp,
920
- },
869
+ ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0),
921
870
(&Mixed::S { d1: ref __self_0, d2: ref __self_1 },
922
871
&Mixed::S { d1: ref __arg_1_0, d2: ref __arg_1_1 }) =>
923
872
match ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0) {
924
873
::core::cmp::Ordering::Equal =>
925
- match ::core::cmp::Ord::cmp(&*__self_1, &*__arg_1_1) {
926
- ::core::cmp::Ordering::Equal =>
927
- ::core::cmp::Ordering::Equal,
928
- cmp => cmp,
929
- },
874
+ ::core::cmp::Ord::cmp(&*__self_1, &*__arg_1_1),
930
875
cmp => cmp,
931
876
},
932
877
_ => ::core::cmp::Ordering::Equal,
@@ -1054,29 +999,14 @@ impl ::core::cmp::PartialOrd for Fielded {
1054
999
if __self_vi == __arg_1_vi {
1055
1000
match (&*self, &*other) {
1056
1001
(&Fielded::X(ref __self_0), &Fielded::X(ref __arg_1_0)) =>
1057
- match ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
1058
- &*__arg_1_0) {
1059
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
1060
- =>
1061
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
1062
- cmp => cmp,
1063
- },
1002
+ ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
1003
+ &*__arg_1_0),
1064
1004
(&Fielded::Y(ref __self_0), &Fielded::Y(ref __arg_1_0)) =>
1065
- match ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
1066
- &*__arg_1_0) {
1067
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
1068
- =>
1069
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
1070
- cmp => cmp,
1071
- },
1005
+ ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
1006
+ &*__arg_1_0),
1072
1007
(&Fielded::Z(ref __self_0), &Fielded::Z(ref __arg_1_0)) =>
1073
- match ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
1074
- &*__arg_1_0) {
1075
- ::core::option::Option::Some(::core::cmp::Ordering::Equal)
1076
- =>
1077
- ::core::option::Option::Some(::core::cmp::Ordering::Equal),
1078
- cmp => cmp,
1079
- },
1008
+ ::core::cmp::PartialOrd::partial_cmp(&*__self_0,
1009
+ &*__arg_1_0),
1080
1010
_ => unsafe { ::core::intrinsics::unreachable() }
1081
1011
}
1082
1012
} else {
@@ -1094,23 +1024,11 @@ impl ::core::cmp::Ord for Fielded {
1094
1024
if __self_vi == __arg_1_vi {
1095
1025
match (&*self, &*other) {
1096
1026
(&Fielded::X(ref __self_0), &Fielded::X(ref __arg_1_0)) =>
1097
- match ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0) {
1098
- ::core::cmp::Ordering::Equal =>
1099
- ::core::cmp::Ordering::Equal,
1100
- cmp => cmp,
1101
- },
1027
+ ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0),
1102
1028
(&Fielded::Y(ref __self_0), &Fielded::Y(ref __arg_1_0)) =>
1103
- match ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0) {
1104
- ::core::cmp::Ordering::Equal =>
1105
- ::core::cmp::Ordering::Equal,
1106
- cmp => cmp,
1107
- },
1029
+ ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0),
1108
1030
(&Fielded::Z(ref __self_0), &Fielded::Z(ref __arg_1_0)) =>
1109
- match ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0) {
1110
- ::core::cmp::Ordering::Equal =>
1111
- ::core::cmp::Ordering::Equal,
1112
- cmp => cmp,
1113
- },
1031
+ ::core::cmp::Ord::cmp(&*__self_0, &*__arg_1_0),
1114
1032
_ => unsafe { ::core::intrinsics::unreachable() }
1115
1033
}
1116
1034
} else { ::core::cmp::Ord::cmp(&__self_vi, &__arg_1_vi) }
0 commit comments