From a47a7bdc8d023467f4f0586c393597af727e1d9e Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 11 Dec 2023 23:00:53 -0800 Subject: [PATCH] Internal Code Change PiperOrigin-RevId: 590074377 --- rust/test/BUILD | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/rust/test/BUILD b/rust/test/BUILD index 5b5e216fa865..decb41a187c8 100644 --- a/rust/test/BUILD +++ b/rust/test/BUILD @@ -74,7 +74,7 @@ rust_proto_library( name = "unittest_proto3_optional_rust_proto", testonly = True, visibility = [ - "//rust/test/shared:__subpackages__", + "//visibility:private", # Only private by automation, not intent. Owner may accept CLs adding visibility. See go/scheuklappen#explicit-private. ], deps = [ UNITTEST_PROTO3_OPTIONAL_TARGET, @@ -84,20 +84,14 @@ rust_proto_library( rust_cc_proto_library( name = "unittest_proto3_optional_cc_rust_proto", testonly = True, - visibility = [ - "//rust/test/cpp:__subpackages__", - "//rust/test/shared:__subpackages__", - ], + visibility = ["//rust/test/shared:__subpackages__"], deps = [UNITTEST_PROTO3_OPTIONAL_CC_TARGET], ) rust_upb_proto_library( name = "unittest_proto3_optional_upb_rust_proto", testonly = True, - visibility = [ - "//rust/test/cpp:__subpackages__", - "//rust/test/shared:__subpackages__", - ], + visibility = ["//rust/test/shared:__subpackages__"], deps = [UNITTEST_PROTO3_OPTIONAL_TARGET], )