enum-ref-macro 0.1.0

Proc. macro implementation for the `enum-ref` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Utilies for proc. macro error reporting.

macro_rules! bail_spanned {
    ($tokens:expr, $($msg:tt)*) => {
        return ::core::result::Result::Err(
            ::syn::Error::new_spanned(
                &$tokens,
                format_args!($($msg)*)
            )
        )
    }
}