Remove unused functions in with-variant tests

Macro expansion fails before it would generate code to call any of these.
This commit is contained in:
David Tolnay 2017-09-09 10:58:29 -07:00
parent 0963121beb
commit 2e597ed3f0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
11 changed files with 0 additions and 72 deletions

View File

@ -16,10 +16,4 @@ enum Enum {
Newtype(#[serde(skip_deserializing)] String),
}
fn deserialize_some_newtype_variant<'de, D>(_: D) -> StdResult<String, D::Error>
where D: Deserializer<'de>,
{
unimplemented!()
}
fn main() { }

View File

@ -20,10 +20,4 @@ enum Enum {
},
}
fn deserialize_some_other_variant<'de, D>(_: D) -> StdResult<(String, u8), D::Error>
where D: Deserializer<'de>,
{
unimplemented!()
}
fn main() { }

View File

@ -16,10 +16,4 @@ enum Enum {
Tuple(#[serde(skip_deserializing)] String, u8),
}
fn deserialize_some_other_variant<'de, D>(_: D) -> StdResult<(String, u8), D::Error>
where D: Deserializer<'de>,
{
unimplemented!()
}
fn main() { }

View File

@ -17,10 +17,4 @@ enum Enum {
Unit,
}
fn deserialize_some_unit_variant<'de, D>(_: D) -> StdResult<(), D::Error>
where D: Deserializer<'de>,
{
unimplemented!()
}
fn main() { }

View File

@ -16,10 +16,4 @@ enum Enum {
Newtype(#[serde(skip_serializing)] String),
}
fn serialize_some_newtype_variant<S>(_: &String) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn main() { }

View File

@ -16,12 +16,4 @@ enum Enum {
Newtype(#[serde(skip_serializing_if = "always")] String),
}
fn serialize_some_newtype_variant<S>(_: &String) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn always<T>(_: &T) -> bool { true }
fn main() { }

View File

@ -20,10 +20,4 @@ enum Enum {
},
}
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn main() { }

View File

@ -20,12 +20,4 @@ enum Enum {
},
}
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn always<T>(_: &T) -> bool { true }
fn main() { }

View File

@ -16,10 +16,4 @@ enum Enum {
Tuple(#[serde(skip_serializing)] String, u8),
}
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn main() { }

View File

@ -16,12 +16,4 @@ enum Enum {
Tuple(#[serde(skip_serializing_if = "always")] String, u8),
}
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn always<T>(_: &T) -> bool { true }
fn main() { }

View File

@ -17,10 +17,4 @@ enum Enum {
Unit,
}
fn serialize_some_unit_variant<S>(_: S) -> StdResult<S::Ok, S::Error>
where S: Serializer,
{
unimplemented!()
}
fn main() { }