@@ -13,7 +13,7 @@ pub fn type_decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
1313 quote ! { }
1414 } ;
1515
16- s. add_impl_generic ( parse_quote ! { #decoder_ty: :: rustc_type_ir:: codec:: TyDecoder #bound } ) ;
16+ s. add_impl_generic ( parse_quote ! { #decoder_ty: :: rustc_type_ir:: codec:: TyDecoder #bound } ) ;
1717 s. add_bounds ( synstructure:: AddBounds :: Fields ) ;
1818 s. underscore_const ( true ) ;
1919
@@ -34,7 +34,7 @@ pub fn meta_decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
3434
3535pub fn decodable_derive ( mut s : synstructure:: Structure < ' _ > ) -> proc_macro2:: TokenStream {
3636 let decoder_ty = quote ! { __D } ;
37- s. add_impl_generic ( parse_quote ! { #decoder_ty: :: rustc_span:: SpanDecoder } ) ;
37+ s. add_impl_generic ( parse_quote ! { #decoder_ty: :: rustc_span:: SpanDecoder } ) ;
3838 s. add_bounds ( synstructure:: AddBounds :: Generics ) ;
3939 s. underscore_const ( true ) ;
4040
@@ -43,7 +43,7 @@ pub fn decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::Toke
4343
4444pub fn decodable_generic_derive ( mut s : synstructure:: Structure < ' _ > ) -> proc_macro2:: TokenStream {
4545 let decoder_ty = quote ! { __D } ;
46- s. add_impl_generic ( parse_quote ! { #decoder_ty: :: rustc_serialize:: Decoder } ) ;
46+ s. add_impl_generic ( parse_quote ! { #decoder_ty: :: rustc_serialize:: Decoder } ) ;
4747 s. add_bounds ( synstructure:: AddBounds :: Generics ) ;
4848 s. underscore_const ( true ) ;
4949
@@ -120,7 +120,7 @@ fn decode_field(field: &syn::Field) -> proc_macro2::TokenStream {
120120 let __decoder = quote ! { __decoder } ;
121121 // Use the span of the field for the method call, so
122122 // that backtraces will point to the field.
123- quote_spanned ! { field_span=> #decode_inner_method( #__decoder) }
123+ quote_spanned ! { field_span=> #decode_inner_method( #__decoder) }
124124}
125125
126126pub fn type_encodable_derive ( mut s : synstructure:: Structure < ' _ > ) -> proc_macro2:: TokenStream {
@@ -133,7 +133,7 @@ pub fn type_encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
133133 } ;
134134
135135 let encoder_ty = quote ! { __E } ;
136- s. add_impl_generic ( parse_quote ! { #encoder_ty: :: rustc_type_ir:: codec:: TyEncoder #bound } ) ;
136+ s. add_impl_generic ( parse_quote ! { #encoder_ty: :: rustc_type_ir:: codec:: TyEncoder #bound } ) ;
137137 s. add_bounds ( synstructure:: AddBounds :: Fields ) ;
138138 s. underscore_const ( true ) ;
139139
@@ -142,7 +142,7 @@ pub fn type_encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
142142
143143pub fn meta_encodable_derive ( mut s : synstructure:: Structure < ' _ > ) -> proc_macro2:: TokenStream {
144144 if !s. ast ( ) . generics . lifetimes ( ) . any ( |lt| lt. lifetime . ident == "tcx" ) {
145- s. add_impl_generic ( parse_quote ! { ' tcx} ) ;
145+ s. add_impl_generic ( parse_quote ! { ' tcx } ) ;
146146 }
147147 s. add_impl_generic ( parse_quote ! { ' __a } ) ;
148148 let encoder_ty = quote ! { EncodeContext <' __a, ' tcx> } ;
@@ -154,7 +154,7 @@ pub fn meta_encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
154154
155155pub fn encodable_derive ( mut s : synstructure:: Structure < ' _ > ) -> proc_macro2:: TokenStream {
156156 let encoder_ty = quote ! { __E } ;
157- s. add_impl_generic ( parse_quote ! { #encoder_ty: :: rustc_span:: SpanEncoder } ) ;
157+ s. add_impl_generic ( parse_quote ! { #encoder_ty: :: rustc_span:: SpanEncoder } ) ;
158158 s. add_bounds ( synstructure:: AddBounds :: Generics ) ;
159159 s. underscore_const ( true ) ;
160160
@@ -163,7 +163,7 @@ pub fn encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::Toke
163163
164164pub fn encodable_generic_derive ( mut s : synstructure:: Structure < ' _ > ) -> proc_macro2:: TokenStream {
165165 let encoder_ty = quote ! { __E } ;
166- s. add_impl_generic ( parse_quote ! { #encoder_ty: :: rustc_serialize:: Encoder } ) ;
166+ s. add_impl_generic ( parse_quote ! { #encoder_ty: :: rustc_serialize:: Encoder } ) ;
167167 s. add_bounds ( synstructure:: AddBounds :: Generics ) ;
168168 s. underscore_const ( true ) ;
169169
0 commit comments