fn default_visibility(tcx: TyCtxt<'_>, id: DefId, is_generic: bool) -> Visibility