Remove stdlib derives and fix expanded files to have newlines at the end
This commit is contained in:
parent
4dda90502a
commit
640f8e0e82
@ -7,213 +7,6 @@ enum DeEnum<B, C, D> {
|
||||
_Seq2(i8, B, C, D),
|
||||
_Map2 { a: i8, b: B, c: C, d: D },
|
||||
}
|
||||
#[automatically_derived]
|
||||
#[allow(unused_qualifications)]
|
||||
impl<B: ::core::fmt::Debug, C: ::core::fmt::Debug, D: ::core::fmt::Debug> ::core::fmt::Debug
|
||||
for DeEnum<B, C, D>
|
||||
{
|
||||
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||
match (&*self,) {
|
||||
(&DeEnum::Unit,) => {
|
||||
let mut debug_trait_builder = f.debug_tuple("Unit");
|
||||
debug_trait_builder.finish()
|
||||
}
|
||||
(&DeEnum::Seq(ref __self_0, ref __self_1, ref __self_2, ref __self_3),) => {
|
||||
let mut debug_trait_builder = f.debug_tuple("Seq");
|
||||
let _ = debug_trait_builder.field(&&(*__self_0));
|
||||
let _ = debug_trait_builder.field(&&(*__self_1));
|
||||
let _ = debug_trait_builder.field(&&(*__self_2));
|
||||
let _ = debug_trait_builder.field(&&(*__self_3));
|
||||
debug_trait_builder.finish()
|
||||
}
|
||||
(&DeEnum::Map {
|
||||
a: ref __self_0,
|
||||
b: ref __self_1,
|
||||
c: ref __self_2,
|
||||
d: ref __self_3,
|
||||
},) => {
|
||||
let mut debug_trait_builder = f.debug_struct("Map");
|
||||
let _ = debug_trait_builder.field("a", &&(*__self_0));
|
||||
let _ = debug_trait_builder.field("b", &&(*__self_1));
|
||||
let _ = debug_trait_builder.field("c", &&(*__self_2));
|
||||
let _ = debug_trait_builder.field("d", &&(*__self_3));
|
||||
debug_trait_builder.finish()
|
||||
}
|
||||
(&DeEnum::_Unit2,) => {
|
||||
let mut debug_trait_builder = f.debug_tuple("_Unit2");
|
||||
debug_trait_builder.finish()
|
||||
}
|
||||
(&DeEnum::_Seq2(ref __self_0, ref __self_1, ref __self_2, ref __self_3),) => {
|
||||
let mut debug_trait_builder = f.debug_tuple("_Seq2");
|
||||
let _ = debug_trait_builder.field(&&(*__self_0));
|
||||
let _ = debug_trait_builder.field(&&(*__self_1));
|
||||
let _ = debug_trait_builder.field(&&(*__self_2));
|
||||
let _ = debug_trait_builder.field(&&(*__self_3));
|
||||
debug_trait_builder.finish()
|
||||
}
|
||||
(&DeEnum::_Map2 {
|
||||
a: ref __self_0,
|
||||
b: ref __self_1,
|
||||
c: ref __self_2,
|
||||
d: ref __self_3,
|
||||
},) => {
|
||||
let mut debug_trait_builder = f.debug_struct("_Map2");
|
||||
let _ = debug_trait_builder.field("a", &&(*__self_0));
|
||||
let _ = debug_trait_builder.field("b", &&(*__self_1));
|
||||
let _ = debug_trait_builder.field("c", &&(*__self_2));
|
||||
let _ = debug_trait_builder.field("d", &&(*__self_3));
|
||||
debug_trait_builder.finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
impl<B, C, D> ::core::marker::StructuralPartialEq for DeEnum<B, C, D> {}
|
||||
#[automatically_derived]
|
||||
#[allow(unused_qualifications)]
|
||||
impl<B: ::core::cmp::PartialEq, C: ::core::cmp::PartialEq, D: ::core::cmp::PartialEq>
|
||||
::core::cmp::PartialEq for DeEnum<B, C, D>
|
||||
{
|
||||
#[inline]
|
||||
fn eq(&self, other: &DeEnum<B, C, D>) -> bool {
|
||||
{
|
||||
let __self_vi = unsafe { ::core::intrinsics::discriminant_value(&*self) } as isize;
|
||||
let __arg_1_vi = unsafe { ::core::intrinsics::discriminant_value(&*other) } as isize;
|
||||
if true && __self_vi == __arg_1_vi {
|
||||
match (&*self, &*other) {
|
||||
(
|
||||
&DeEnum::Seq(ref __self_0, ref __self_1, ref __self_2, ref __self_3),
|
||||
&DeEnum::Seq(ref __arg_1_0, ref __arg_1_1, ref __arg_1_2, ref __arg_1_3),
|
||||
) => {
|
||||
(*__self_0) == (*__arg_1_0)
|
||||
&& (*__self_1) == (*__arg_1_1)
|
||||
&& (*__self_2) == (*__arg_1_2)
|
||||
&& (*__self_3) == (*__arg_1_3)
|
||||
}
|
||||
(
|
||||
&DeEnum::Map {
|
||||
a: ref __self_0,
|
||||
b: ref __self_1,
|
||||
c: ref __self_2,
|
||||
d: ref __self_3,
|
||||
},
|
||||
&DeEnum::Map {
|
||||
a: ref __arg_1_0,
|
||||
b: ref __arg_1_1,
|
||||
c: ref __arg_1_2,
|
||||
d: ref __arg_1_3,
|
||||
},
|
||||
) => {
|
||||
(*__self_0) == (*__arg_1_0)
|
||||
&& (*__self_1) == (*__arg_1_1)
|
||||
&& (*__self_2) == (*__arg_1_2)
|
||||
&& (*__self_3) == (*__arg_1_3)
|
||||
}
|
||||
(
|
||||
&DeEnum::_Seq2(ref __self_0, ref __self_1, ref __self_2, ref __self_3),
|
||||
&DeEnum::_Seq2(ref __arg_1_0, ref __arg_1_1, ref __arg_1_2, ref __arg_1_3),
|
||||
) => {
|
||||
(*__self_0) == (*__arg_1_0)
|
||||
&& (*__self_1) == (*__arg_1_1)
|
||||
&& (*__self_2) == (*__arg_1_2)
|
||||
&& (*__self_3) == (*__arg_1_3)
|
||||
}
|
||||
(
|
||||
&DeEnum::_Map2 {
|
||||
a: ref __self_0,
|
||||
b: ref __self_1,
|
||||
c: ref __self_2,
|
||||
d: ref __self_3,
|
||||
},
|
||||
&DeEnum::_Map2 {
|
||||
a: ref __arg_1_0,
|
||||
b: ref __arg_1_1,
|
||||
c: ref __arg_1_2,
|
||||
d: ref __arg_1_3,
|
||||
},
|
||||
) => {
|
||||
(*__self_0) == (*__arg_1_0)
|
||||
&& (*__self_1) == (*__arg_1_1)
|
||||
&& (*__self_2) == (*__arg_1_2)
|
||||
&& (*__self_3) == (*__arg_1_3)
|
||||
}
|
||||
_ => true,
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
#[inline]
|
||||
fn ne(&self, other: &DeEnum<B, C, D>) -> bool {
|
||||
{
|
||||
let __self_vi = unsafe { ::core::intrinsics::discriminant_value(&*self) } as isize;
|
||||
let __arg_1_vi = unsafe { ::core::intrinsics::discriminant_value(&*other) } as isize;
|
||||
if true && __self_vi == __arg_1_vi {
|
||||
match (&*self, &*other) {
|
||||
(
|
||||
&DeEnum::Seq(ref __self_0, ref __self_1, ref __self_2, ref __self_3),
|
||||
&DeEnum::Seq(ref __arg_1_0, ref __arg_1_1, ref __arg_1_2, ref __arg_1_3),
|
||||
) => {
|
||||
(*__self_0) != (*__arg_1_0)
|
||||
|| (*__self_1) != (*__arg_1_1)
|
||||
|| (*__self_2) != (*__arg_1_2)
|
||||
|| (*__self_3) != (*__arg_1_3)
|
||||
}
|
||||
(
|
||||
&DeEnum::Map {
|
||||
a: ref __self_0,
|
||||
b: ref __self_1,
|
||||
c: ref __self_2,
|
||||
d: ref __self_3,
|
||||
},
|
||||
&DeEnum::Map {
|
||||
a: ref __arg_1_0,
|
||||
b: ref __arg_1_1,
|
||||
c: ref __arg_1_2,
|
||||
d: ref __arg_1_3,
|
||||
},
|
||||
) => {
|
||||
(*__self_0) != (*__arg_1_0)
|
||||
|| (*__self_1) != (*__arg_1_1)
|
||||
|| (*__self_2) != (*__arg_1_2)
|
||||
|| (*__self_3) != (*__arg_1_3)
|
||||
}
|
||||
(
|
||||
&DeEnum::_Seq2(ref __self_0, ref __self_1, ref __self_2, ref __self_3),
|
||||
&DeEnum::_Seq2(ref __arg_1_0, ref __arg_1_1, ref __arg_1_2, ref __arg_1_3),
|
||||
) => {
|
||||
(*__self_0) != (*__arg_1_0)
|
||||
|| (*__self_1) != (*__arg_1_1)
|
||||
|| (*__self_2) != (*__arg_1_2)
|
||||
|| (*__self_3) != (*__arg_1_3)
|
||||
}
|
||||
(
|
||||
&DeEnum::_Map2 {
|
||||
a: ref __self_0,
|
||||
b: ref __self_1,
|
||||
c: ref __self_2,
|
||||
d: ref __self_3,
|
||||
},
|
||||
&DeEnum::_Map2 {
|
||||
a: ref __arg_1_0,
|
||||
b: ref __arg_1_1,
|
||||
c: ref __arg_1_2,
|
||||
d: ref __arg_1_3,
|
||||
},
|
||||
) => {
|
||||
(*__self_0) != (*__arg_1_0)
|
||||
|| (*__self_1) != (*__arg_1_1)
|
||||
|| (*__self_2) != (*__arg_1_2)
|
||||
|| (*__self_3) != (*__arg_1_3)
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
|
||||
const _IMPL_DESERIALIZE_FOR_DeEnum: () = {
|
||||
#[allow(unknown_lints)]
|
||||
|
@ -1,6 +1,6 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
enum DeEnum<B, C, D> {
|
||||
Unit,
|
||||
Seq(i8, B, C, D),
|
||||
|
Loading…
Reference in New Issue
Block a user