pub struct Spans { /* private fields */ }Expand description
The compiler spans one capture issued handles for.
A handle means “the token at this index of the table its producer built”, and this is that table when the producer is a proc macro. It is what lets a refusal land on the offending token rather than on the declaration’s first one, because it is what holds the compiler’s own spans.
Implementations§
Source§impl Spans
impl Spans
Sourcepub fn at(&self, handle: SpanHandle) -> Span
pub fn at(&self, handle: SpanHandle) -> Span
The compiler span one handle names, or the invocation where this table does not reach it.
One lookup for every road that holds a handle, so a diagnostic the compiler composed and a capture this host refused point at their token the same way. Where the table does not reach, the invocation stands — never the declaration’s first span, which is a real token the observation is not about and would read exactly like an answer.