fn for_each_def(
    tcx: TyCtxt<'_>,
    collect_fn: impl for<'b> FnMut(&'b Ident, Namespace, DefId)
)