Lines Matching refs:Diagnostic
22 pub struct Diagnostic {
30 /// A collection of methods that do not exist in `proc_macro::Diagnostic`
37 /// This function is the same as `Diagnostic::spanned` but produces considerably
44 /// This function is the same as `Diagnostic::span_error` but produces considerably
50 /// This function is the same as `Diagnostic::span_help` but produces considerably
60 /// This function is the same as `Diagnostic::span_note` but produces considerably
69 impl DiagnosticExt for Diagnostic {
71 Diagnostic {
98 impl Diagnostic {
101 Diagnostic::spanned(Span::call_site(), level, message)
106 Diagnostic::spanned_range(
198 impl Diagnostic {
214 impl ToTokens for Diagnostic {
291 impl From<syn::Error> for Diagnostic {
341 let mut res = Diagnostic::spanned_range(span_range, Level::Error, msg);