Home
last modified time | relevance | path

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

/third_party/rust/crates/proc-macro-error/src/imp/
H A Ddelegate.rs9 diagnostic::{Diagnostic, Level, SuggestionKind},
48 (SuggestionKind::Note, Some(span_range)) => {
51 (SuggestionKind::Help, Some(span_range)) => {
54 (SuggestionKind::Note, None) => res.note(msg),
55 (SuggestionKind::Help, None) => res.help(msg),
/third_party/rust/crates/proc-macro-error/src/
H A 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()
276 pub(crate) enum SuggestionKind {
281 impl SuggestionKind { impls
284 SuggestionKind::Note => "note", in name()
285 SuggestionKind in name()
[all...]

Completed in 1 milliseconds