From 19a11237b83a2470c097a377ee34fb513d1b826a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 5 May 2020 17:22:53 -0700 Subject: [PATCH] Regenerate macrotest *.expanded.rs files This picks up changes from a135199ab104a8068f6dd672f813760d17128212 and 1b35c9e27e8b6acff0bf1a4c1a030492e0e533d5. --- test_suite/tests/expand/de_enum.expanded.rs | 8 ++++---- .../tests/expand/default_ty_param.expanded.rs | 8 ++++---- test_suite/tests/expand/generic_enum.expanded.rs | 8 ++++---- .../tests/expand/generic_struct.expanded.rs | 16 ++++++++-------- .../expand/generic_tuple_struct.expanded.rs | 4 ++-- test_suite/tests/expand/lifetimes.expanded.rs | 8 ++++---- test_suite/tests/expand/named_map.expanded.rs | 8 ++++---- test_suite/tests/expand/named_tuple.expanded.rs | 8 ++++---- test_suite/tests/expand/named_unit.expanded.rs | 8 ++++---- test_suite/tests/expand/ser_enum.expanded.rs | 4 ++-- test_suite/tests/expand/void.expanded.rs | 8 ++++---- 11 files changed, 44 insertions(+), 44 deletions(-) diff --git a/test_suite/tests/expand/de_enum.expanded.rs b/test_suite/tests/expand/de_enum.expanded.rs index f9ba2297..58d40459 100644 --- a/test_suite/tests/expand/de_enum.expanded.rs +++ b/test_suite/tests/expand/de_enum.expanded.rs @@ -7,10 +7,10 @@ enum DeEnum { _Seq2(i8, B, C, D), _Map2 { a: i8, b: B, c: C, d: D }, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_DeEnum: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for DeEnum @@ -259,10 +259,10 @@ const _IMPL_SERIALIZE_FOR_DeEnum: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_DeEnum: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, B, C, D> _serde::Deserialize<'de> for DeEnum diff --git a/test_suite/tests/expand/default_ty_param.expanded.rs b/test_suite/tests/expand/default_ty_param.expanded.rs index 8f9afefc..23c243bc 100644 --- a/test_suite/tests/expand/default_ty_param.expanded.rs +++ b/test_suite/tests/expand/default_ty_param.expanded.rs @@ -8,10 +8,10 @@ impl AssociatedType for i32 { struct DefaultTyParam = i32> { phantom: PhantomData, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_DefaultTyParam: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl> _serde::Serialize for DefaultTyParam { @@ -43,10 +43,10 @@ const _IMPL_SERIALIZE_FOR_DefaultTyParam: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_DefaultTyParam: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, T: AssociatedType> _serde::Deserialize<'de> for DefaultTyParam { diff --git a/test_suite/tests/expand/generic_enum.expanded.rs b/test_suite/tests/expand/generic_enum.expanded.rs index 0f8b98d9..899e4fea 100644 --- a/test_suite/tests/expand/generic_enum.expanded.rs +++ b/test_suite/tests/expand/generic_enum.expanded.rs @@ -5,10 +5,10 @@ pub enum GenericEnum { Seq(T, U), Map { x: T, y: U }, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_GenericEnum: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for GenericEnum @@ -108,10 +108,10 @@ const _IMPL_SERIALIZE_FOR_GenericEnum: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_GenericEnum: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, T, U> _serde::Deserialize<'de> for GenericEnum diff --git a/test_suite/tests/expand/generic_struct.expanded.rs b/test_suite/tests/expand/generic_struct.expanded.rs index fb9aa906..1331e7e9 100644 --- a/test_suite/tests/expand/generic_struct.expanded.rs +++ b/test_suite/tests/expand/generic_struct.expanded.rs @@ -2,10 +2,10 @@ use serde::{Deserialize, Serialize}; pub struct GenericStruct { x: T, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_GenericStruct: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for GenericStruct @@ -36,10 +36,10 @@ const _IMPL_SERIALIZE_FOR_GenericStruct: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_GenericStruct: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, T> _serde::Deserialize<'de> for GenericStruct @@ -398,10 +398,10 @@ const _IMPL_DESERIALIZE_FOR_GenericStruct: () = { } }; pub struct GenericNewTypeStruct(T); +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_GenericNewTypeStruct: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for GenericNewTypeStruct @@ -420,10 +420,10 @@ const _IMPL_SERIALIZE_FOR_GenericNewTypeStruct: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_GenericNewTypeStruct: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, T> _serde::Deserialize<'de> for GenericNewTypeStruct diff --git a/test_suite/tests/expand/generic_tuple_struct.expanded.rs b/test_suite/tests/expand/generic_tuple_struct.expanded.rs index 8227dc07..50866738 100644 --- a/test_suite/tests/expand/generic_tuple_struct.expanded.rs +++ b/test_suite/tests/expand/generic_tuple_struct.expanded.rs @@ -1,9 +1,9 @@ use serde::{Deserialize, Serialize}; pub struct GenericTupleStruct(T, U); +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_GenericTupleStruct: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, T, U> _serde::Deserialize<'de> for GenericTupleStruct diff --git a/test_suite/tests/expand/lifetimes.expanded.rs b/test_suite/tests/expand/lifetimes.expanded.rs index 941e08f7..6916ac90 100644 --- a/test_suite/tests/expand/lifetimes.expanded.rs +++ b/test_suite/tests/expand/lifetimes.expanded.rs @@ -5,10 +5,10 @@ enum Lifetimes<'a> { LifetimeMap { a: &'a i32 }, NoLifetimeMap { a: i32 }, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_Lifetimes: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'a> _serde::Serialize for Lifetimes<'a> { @@ -89,10 +89,10 @@ const _IMPL_SERIALIZE_FOR_Lifetimes: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_Lifetimes: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, 'a> _serde::Deserialize<'de> for Lifetimes<'a> { diff --git a/test_suite/tests/expand/named_map.expanded.rs b/test_suite/tests/expand/named_map.expanded.rs index 88fa708d..5283993e 100644 --- a/test_suite/tests/expand/named_map.expanded.rs +++ b/test_suite/tests/expand/named_map.expanded.rs @@ -4,10 +4,10 @@ struct SerNamedMap<'a, 'b, A: 'a, B: 'b, C> { b: &'b mut B, c: C, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_SerNamedMap: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'a, 'b, A: 'a, B: 'b, C> _serde::Serialize for SerNamedMap<'a, 'b, A, B, C> @@ -57,10 +57,10 @@ struct DeNamedMap { b: B, c: C, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_DeNamedMap: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, A, B, C> _serde::Deserialize<'de> for DeNamedMap diff --git a/test_suite/tests/expand/named_tuple.expanded.rs b/test_suite/tests/expand/named_tuple.expanded.rs index aab87a21..2966c295 100644 --- a/test_suite/tests/expand/named_tuple.expanded.rs +++ b/test_suite/tests/expand/named_tuple.expanded.rs @@ -1,9 +1,9 @@ use serde::{Deserialize, Serialize}; struct SerNamedTuple<'a, 'b, A: 'a, B: 'b, C>(&'a A, &'b mut B, C); +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_SerNamedTuple: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'a, 'b, A: 'a, B: 'b, C> _serde::Serialize for SerNamedTuple<'a, 'b, A, B, C> @@ -49,10 +49,10 @@ const _IMPL_SERIALIZE_FOR_SerNamedTuple: () = { } }; struct DeNamedTuple(A, B, C); +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_DeNamedTuple: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de, A, B, C> _serde::Deserialize<'de> for DeNamedTuple diff --git a/test_suite/tests/expand/named_unit.expanded.rs b/test_suite/tests/expand/named_unit.expanded.rs index 4156d75b..f100688a 100644 --- a/test_suite/tests/expand/named_unit.expanded.rs +++ b/test_suite/tests/expand/named_unit.expanded.rs @@ -1,9 +1,9 @@ use serde::{Deserialize, Serialize}; struct NamedUnit; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_NamedUnit: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for NamedUnit { @@ -15,10 +15,10 @@ const _IMPL_SERIALIZE_FOR_NamedUnit: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_NamedUnit: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de> _serde::Deserialize<'de> for NamedUnit { diff --git a/test_suite/tests/expand/ser_enum.expanded.rs b/test_suite/tests/expand/ser_enum.expanded.rs index 8d917dcc..cd2723fa 100644 --- a/test_suite/tests/expand/ser_enum.expanded.rs +++ b/test_suite/tests/expand/ser_enum.expanded.rs @@ -10,10 +10,10 @@ where _Seq2(i8, B, &'a C, &'a mut D), _Map2 { a: i8, b: B, c: &'a C, d: &'a mut D }, } +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_SerEnum: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'a, B: 'a, C: 'a, D> _serde::Serialize for SerEnum<'a, B, C, D> diff --git a/test_suite/tests/expand/void.expanded.rs b/test_suite/tests/expand/void.expanded.rs index f7a83aa4..e7db4ac2 100644 --- a/test_suite/tests/expand/void.expanded.rs +++ b/test_suite/tests/expand/void.expanded.rs @@ -1,9 +1,9 @@ use serde::{Deserialize, Serialize}; enum Void {} +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_Void: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for Void { @@ -15,10 +15,10 @@ const _IMPL_SERIALIZE_FOR_Void: () = { } } }; +#[doc(hidden)] #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_Void: () = { - #[allow(unknown_lints)] - #[allow(rust_2018_idioms)] + #[allow(rust_2018_idioms, clippy::useless_attribute)] extern crate serde as _serde; #[automatically_derived] impl<'de> _serde::Deserialize<'de> for Void {