pub(crate) fn index_crate<'a>(
    node_id_to_def_id: &NodeMap<LocalDefId>,
    krate: &'a Crate
) -> IndexVec<LocalDefId, AstOwner<'a>>