rustc_resolve::diagnostics

Function find_span_of_binding_until_next_binding

Source
fn find_span_of_binding_until_next_binding(
    sess: &Session,
    binding_span: Span,
    use_span: Span,
) -> (bool, Span)
Expand description

Given a binding_span of a binding within a use statement:

use foo::{a, b, c};
//           ^

then return the span until the next binding or the end of the statement:

use foo::{a, b, c};
//           ^^^