Skip to main content

consumes_span_of

Function consumes_span_of 

Source
pub fn consumes_span_of(
    parsed: &[ParsedFile],
    indices: &[usize],
    target: &str,
) -> Option<(usize, Span)>
Expand description

#696: returns the parsed index of the owning file alongside the consumes clause span, so the caller can attribute the diagnostic to that file.