[−][src]Function proc_macro_error::filter_macro_error_panics
pub fn filter_macro_error_panics<F>(f: F) -> TokenStream where
F: FnOnce() -> TokenStream,
Execute the closure and catch all the panics triggered by
trigger_error
, converting them to proc_macro::TokenStream
.
All the other panics will be passed through as is.
You're not supposed to use this function directly, use filter_macro_errors!
instead.