fn show_candidates(
    session: &Session,
    source_span: &IndexVec<LocalDefId, Span>,
    err: &mut Diagnostic,
    use_placement_span: Option<Span>,
    candidates: &[ImportSuggestion],
    instead: Instead,
    found_use: FoundUse,
    is_pattern: IsPattern,
    path: Vec<Segment>
)
Expand description

When an entity with a given name is not available in scope, we search for entities with that name in all crates. This method allows outputting the results of this search in a programmer-friendly way