Searched refs:SpanRange (Results 1 - 4 of 4) sorted by relevance
/third_party/rust/crates/proc-macro-error/src/ |
H A D | lib.rs | 307 pub struct SpanRange { structure names 312 impl SpanRange { impls 315 SpanRange { in single_span() 321 /// Create a `SpanRange` resolving at call site. 323 SpanRange::single_span(Span::call_site()) in call_site() 331 /// If the stream is empty, the result is `SpanRange::call_site()`. If the stream 332 /// consists of only one `TokenTree`, the result is `SpanRange::single_span(tt.span())` 339 SpanRange { first, last } in from_tokens() 344 pub fn join_range(self, other: SpanRange) -> Self { in join_range() 345 SpanRange { in join_range() [all...] |
H A D | diagnostic.rs | 1 use crate::{abort_now, check_correctness, sealed::Sealed, SpanRange}; 24 pub(crate) span_range: SpanRange, 26 pub(crate) suggestions: Vec<(SuggestionKind, String, Option<SpanRange>)>, 27 pub(crate) children: Vec<(SpanRange, String)>, 39 fn spanned_range(span_range: SpanRange, level: Level, message: String) -> Self; in spanned_range() 46 fn span_range_error(self, span_range: SpanRange, msg: String) -> Self; in span_range_error() 56 fn span_range_help(self, span_range: SpanRange, msg: String) -> Self; in span_range_help() 66 fn span_range_note(self, span_range: SpanRange, msg: String) -> Self; in span_range_note() 70 fn spanned_range(span_range: SpanRange, level: Level, message: String) -> Self { in spanned_range() 80 fn span_range_error(mut self, span_range: SpanRange, ms [all...] |
/third_party/rust/crates/syn/src/ |
H A D | error.rs | 110 span: ThreadBound<SpanRange>, 117 struct SpanRange { structure names 164 span: ThreadBound::new(SpanRange { in new() 198 span: ThreadBound::new(SpanRange { start, end }), in new_spanned() 211 let SpanRange { start, end } = match self.messages[0].span.get() { in span() 343 span: ThreadBound::new(SpanRange { start, end }), in new2() 395 impl Clone for SpanRange { 401 impl Copy for SpanRange {}
|
/third_party/rust/crates/proc-macro-error/test-crate/ |
H A D | lib.rs | 8 proc_macro_error, set_dummy, Diagnostic, Level, OptionExt, ResultExt, SpanRange, 258 abort!(SpanRange { first, last }, "explicit SpanRange") in explicit_span_range()
|
Completed in 3 milliseconds