Revert "Regenerate macrotest outputs for PR #1917"

This reverts commit 999b94d6ae.
This commit is contained in:
David Tolnay 2021-01-23 20:36:26 -08:00
parent 3728d3c67a
commit 5aa163f27e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
7 changed files with 0 additions and 430 deletions

View File

@ -332,25 +332,6 @@ const _: () = {
)), )),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"Unit" => _serde::__private::Ok(__Field::__field0),
"Seq" => _serde::__private::Ok(__Field::__field1),
"Map" => _serde::__private::Ok(__Field::__field2),
"_Unit2" => _serde::__private::Ok(__Field::__field3),
"_Seq2" => _serde::__private::Ok(__Field::__field4),
"_Map2" => _serde::__private::Ok(__Field::__field5),
_ => _serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
)),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -373,28 +354,6 @@ const _: () = {
} }
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"Unit" => _serde::__private::Ok(__Field::__field0),
b"Seq" => _serde::__private::Ok(__Field::__field1),
b"Map" => _serde::__private::Ok(__Field::__field2),
b"_Unit2" => _serde::__private::Ok(__Field::__field3),
b"_Seq2" => _serde::__private::Ok(__Field::__field4),
b"_Map2" => _serde::__private::Ok(__Field::__field5),
_ => {
let __value = &_serde::__private::from_utf8_lossy(__value);
_serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
))
}
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -632,21 +591,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"a" => _serde::__private::Ok(__Field::__field0),
"b" => _serde::__private::Ok(__Field::__field1),
"c" => _serde::__private::Ok(__Field::__field2),
"d" => _serde::__private::Ok(__Field::__field3),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -662,21 +606,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"a" => _serde::__private::Ok(__Field::__field0),
b"b" => _serde::__private::Ok(__Field::__field1),
b"c" => _serde::__private::Ok(__Field::__field2),
b"d" => _serde::__private::Ok(__Field::__field3),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -1165,21 +1094,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"a" => _serde::__private::Ok(__Field::__field0),
"b" => _serde::__private::Ok(__Field::__field1),
"c" => _serde::__private::Ok(__Field::__field2),
"d" => _serde::__private::Ok(__Field::__field3),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -1195,21 +1109,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"a" => _serde::__private::Ok(__Field::__field0),
b"b" => _serde::__private::Ok(__Field::__field1),
b"c" => _serde::__private::Ok(__Field::__field2),
b"d" => _serde::__private::Ok(__Field::__field3),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]

View File

@ -92,18 +92,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"phantom" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -116,18 +104,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"phantom" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -296,18 +272,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"phantom" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -320,18 +284,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"phantom" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]

View File

@ -174,23 +174,6 @@ const _: () = {
)), )),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"Unit" => _serde::__private::Ok(__Field::__field0),
"NewType" => _serde::__private::Ok(__Field::__field1),
"Seq" => _serde::__private::Ok(__Field::__field2),
"Map" => _serde::__private::Ok(__Field::__field3),
_ => _serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
)),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -211,26 +194,6 @@ const _: () = {
} }
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"Unit" => _serde::__private::Ok(__Field::__field0),
b"NewType" => _serde::__private::Ok(__Field::__field1),
b"Seq" => _serde::__private::Ok(__Field::__field2),
b"Map" => _serde::__private::Ok(__Field::__field3),
_ => {
let __value = &_serde::__private::from_utf8_lossy(__value);
_serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
))
}
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -410,19 +373,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"x" => _serde::__private::Ok(__Field::__field0),
"y" => _serde::__private::Ok(__Field::__field1),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -436,19 +386,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"x" => _serde::__private::Ok(__Field::__field0),
b"y" => _serde::__private::Ok(__Field::__field1),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]

View File

@ -88,18 +88,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"x" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -112,18 +100,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"x" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -292,18 +268,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"x" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -316,18 +280,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"x" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]

View File

@ -151,23 +151,6 @@ const _: () = {
)), )),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"LifetimeSeq" => _serde::__private::Ok(__Field::__field0),
"NoLifetimeSeq" => _serde::__private::Ok(__Field::__field1),
"LifetimeMap" => _serde::__private::Ok(__Field::__field2),
"NoLifetimeMap" => _serde::__private::Ok(__Field::__field3),
_ => _serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
)),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -188,26 +171,6 @@ const _: () = {
} }
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"LifetimeSeq" => _serde::__private::Ok(__Field::__field0),
b"NoLifetimeSeq" => _serde::__private::Ok(__Field::__field1),
b"LifetimeMap" => _serde::__private::Ok(__Field::__field2),
b"NoLifetimeMap" => _serde::__private::Ok(__Field::__field3),
_ => {
let __value = &_serde::__private::from_utf8_lossy(__value);
_serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
))
}
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -296,18 +259,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"a" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -320,18 +271,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"a" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -504,18 +443,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"a" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -528,18 +455,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"a" => _serde::__private::Ok(__Field::__field0),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]

View File

@ -117,20 +117,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"a" => _serde::__private::Ok(__Field::__field0),
"b" => _serde::__private::Ok(__Field::__field1),
"c" => _serde::__private::Ok(__Field::__field2),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -145,20 +131,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"a" => _serde::__private::Ok(__Field::__field0),
b"b" => _serde::__private::Ok(__Field::__field1),
b"c" => _serde::__private::Ok(__Field::__field2),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]
@ -429,20 +401,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
"a" => _serde::__private::Ok(__Field::__field0),
"b" => _serde::__private::Ok(__Field::__field1),
"c" => _serde::__private::Ok(__Field::__field2),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -457,20 +415,6 @@ const _: () = {
_ => _serde::__private::Ok(__Field::__ignore), _ => _serde::__private::Ok(__Field::__ignore),
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
b"a" => _serde::__private::Ok(__Field::__field0),
b"b" => _serde::__private::Ok(__Field::__field1),
b"c" => _serde::__private::Ok(__Field::__field2),
_ => _serde::__private::Ok(__Field::__ignore),
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]

View File

@ -64,19 +64,6 @@ const _: () = {
)), )),
} }
} }
fn visit_borrowed_str<__E>(
self,
__value: &'de str,
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
_ => _serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
)),
}
}
fn visit_bytes<__E>( fn visit_bytes<__E>(
self, self,
__value: &[u8], __value: &[u8],
@ -93,22 +80,6 @@ const _: () = {
} }
} }
} }
fn visit_borrowed_bytes<__E>(
self,
__value: &'de [u8],
) -> _serde::__private::Result<Self::Value, __E>
where
__E: _serde::de::Error,
{
match __value {
_ => {
let __value = &_serde::__private::from_utf8_lossy(__value);
_serde::__private::Err(_serde::de::Error::unknown_variant(
__value, VARIANTS,
))
}
}
}
} }
impl<'de> _serde::Deserialize<'de> for __Field { impl<'de> _serde::Deserialize<'de> for __Field {
#[inline] #[inline]