diff --git a/rust/test/BUILD b/rust/test/BUILD index 0fedc17d2a..b94f3dc2f1 100644 --- a/rust/test/BUILD +++ b/rust/test/BUILD @@ -358,10 +358,7 @@ rust_cc_proto_library( rust_upb_proto_library( name = "nested_upb_rust_proto", testonly = True, - visibility = [ - "//rust/test/shared:__subpackages__", - "//rust/test/upb:__subpackages__", - ], + visibility = ["//rust/test/shared:__subpackages__"], deps = [":nested_proto"], )