pub(crate) fn local_visibility(
    tcx: TyCtxt<'_>,
    def_id: LocalDefId
) -> Visibility