Home
last modified time | relevance | path

Searched refs:SuggestionKind (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/proc-macro-error/src/
Ddiagnostic.rs26 pub(crate) suggestions: Vec<(SuggestionKind, String, Option<SpanRange>)>,
87 .push((SuggestionKind::Help, msg, Some(span_range))); in span_range_help()
93 .push((SuggestionKind::Note, msg, Some(span_range))); in span_range_note()
145 self.suggestions.push((SuggestionKind::Help, msg, None)); in help()
166 self.suggestions.push((SuggestionKind::Note, msg, None)); in note()
231 suggestions: &[(SuggestionKind, String, Option<SpanRange>)], in to_tokens() argument
276 pub(crate) enum SuggestionKind { enum
281 impl SuggestionKind { impl
284 SuggestionKind::Note => "note", in name()
285 SuggestionKind::Help => "help", in name()
/external/rust/crates/proc-macro-error/src/imp/
Ddelegate.rs9 diagnostic::{Diagnostic, Level, SuggestionKind},
48 (SuggestionKind::Note, Some(span_range)) => { in emit_diagnostic()
51 (SuggestionKind::Help, Some(span_range)) => { in emit_diagnostic()
54 (SuggestionKind::Note, None) => res.note(msg), in emit_diagnostic()
55 (SuggestionKind::Help, None) => res.help(msg), in emit_diagnostic()