runtime_macros_derive

Function emulate_macro_expansion

Source
pub fn emulate_macro_expansion<F>(
    file: File,
    macro_path: &str,
    proc_macro_fn: F,
)
where F: Fn(TokenStream) -> TokenStream,
👎Deprecated
Expand description

This type is like emulate_macro_expansion_fallible but automatically unwraps any errors it encounters. As such, it’s deprecated due to being less flexible.