1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
macro_rules! die { ($spanned:expr=> $msg:expr ) => { return Err(::syn::Error::new_spanned($spanned, $msg)) }; ( $msg:expr ) => { return Err(::syn::Error::new(::proc_macro2::Span::call_site(), $msg)) }; } pub(crate) use die;