@@ -64,25 +64,25 @@ fn impl_metadata_roundtrip_macro(ast: &syn::DeriveInput) -> Result<TokenStream,
64
64
} else if & serializer == "bincode" {
65
65
return Ok ( impl_serde_bincode_roundtrip ( name) ) ;
66
66
} else {
67
- proc_macro_error :: abort!( serializer, "is not a supported protocol." ) ;
67
+ proc_macro_error2 :: abort!( serializer, "is not a supported protocol." ) ;
68
68
}
69
69
} 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." ) ;
71
71
}
72
72
}
73
73
74
- proc_macro_error :: abort_call_site!( "missing [serializer(...)] attribute" )
74
+ proc_macro_error2 :: abort_call_site!( "missing [serializer(...)] attribute" )
75
75
}
76
76
77
77
macro_rules! make_derive_metadata_tag {
78
78
( $function: ident, $metadatatag: ident) => {
79
- #[ proc_macro_error :: proc_macro_error]
79
+ #[ proc_macro_error2 :: proc_macro_error]
80
80
#[ proc_macro_derive( $metadatatag, attributes( serializer) ) ]
81
81
/// Register a type as metadata.
82
82
pub fn $function( input: TokenStream ) -> TokenStream {
83
83
let ast: syn:: DeriveInput = match syn:: parse( input) {
84
84
Ok ( ast) => ast,
85
- Err ( err) => proc_macro_error :: abort !( err) ,
85
+ Err ( err) => proc_macro_error2 :: abort_call_site !( err) ,
86
86
} ;
87
87
let mut roundtrip = impl_metadata_roundtrip_macro( & ast) . unwrap( ) ;
88
88
let name = & ast. ident;
0 commit comments