Skip to main content

uses_span_of

Function uses_span_of 

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

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