@@ -64,25 +64,25 @@ fn impl_metadata_roundtrip_macro(ast: &syn::DeriveInput) -> Result<TokenStream,
6464 } else if & serializer == "bincode" {
6565 return Ok ( impl_serde_bincode_roundtrip ( name) ) ;
6666 } else {
67- proc_macro_error :: abort!( serializer, "is not a supported protocol." ) ;
67+ proc_macro_error2 :: abort!( serializer, "is not a supported protocol." ) ;
6868 }
6969 } else {
70- proc_macro_error :: abort!( attr. path, "is not a supported attribute." ) ;
70+ proc_macro_error2 :: abort!( attr. path, "is not a supported attribute." ) ;
7171 }
7272 }
7373
74- proc_macro_error :: abort_call_site!( "missing [serializer(...)] attribute" )
74+ proc_macro_error2 :: abort_call_site!( "missing [serializer(...)] attribute" )
7575}
7676
7777macro_rules! make_derive_metadata_tag {
7878 ( $function: ident, $metadatatag: ident) => {
79- #[ proc_macro_error :: proc_macro_error]
79+ #[ proc_macro_error2 :: proc_macro_error]
8080 #[ proc_macro_derive( $metadatatag, attributes( serializer) ) ]
8181 /// Register a type as metadata.
8282 pub fn $function( input: TokenStream ) -> TokenStream {
8383 let ast: syn:: DeriveInput = match syn:: parse( input) {
8484 Ok ( ast) => ast,
85- Err ( err) => proc_macro_error :: abort !( err) ,
85+ Err ( err) => proc_macro_error2 :: abort_call_site !( err) ,
8686 } ;
8787 let mut roundtrip = impl_metadata_roundtrip_macro( & ast) . unwrap( ) ;
8888 let name = & ast. ident;
0 commit comments