find_span_immediately_after_crate_name in rustc_resolve::diagnostics - Rust
Description: Given a `use_span` of a binding within a use statement, returns the highlighted span and if it is a nested use tree.

Skip to main content

## find_span_immediately_after_crate_name

# Function find_span_immediately_after_crate_name

Source

    fn find_span_immediately_after_crate_name(
        sess: &Session,
        use_span: Span,
    ) -> (bool, Span)

Expand description

Given a `use_span` of a binding within a use statement, returns the highlighted span and if it is a nested use tree.

ⓘ

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

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

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