Diagnostic-based compiler errors for proc_macro2
An implementation of Diagnostic for proc_macro2 which leverages Try
Provides a DiagnosticResult which stores a Diagnostic with the same (target) API as
[proc_macro::Diagnostic] and allows ? usage to return early from proc_macro2 code.
# extern crate proc_macro;
use ;
use quote;