Function connected_to_root

Source
fn connected_to_root<I>(
    query_map: &QueryMap<I>,
    query: QueryJobId,
    visited: &mut FxHashSet<QueryJobId>,
) -> bool
Expand description

Finds out if there’s a path to the compiler root (aka. code which isn’t in a query) from query without going through any of the queries in visited. This is achieved with a depth first search.