Function rustc_resolve::diagnostics::find_span_immediately_after_crate_name[][src]

fn find_span_immediately_after_crate_name(
    sess: &Session,
    module_name: Symbol,
    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