fn ty_ref_to_pub_struct(tcx: TyCtxt<'_>, ty: &Ty<'_>) -> bool