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