[roll] Roll fuchsia [bazel][rust] Propagate visibility in rustc_* macros

Pass the implicit `visibility` parameter from `rustc_binary`,
`rustc_library`, and `rustc_proc_macro` symbolic macros to their
internal `host_rustc_test` helper targets.

In Bazel 8+, symbolic macros enforce strict encapsulation:

"By default, targets created in a symbolic macro are visible within the
macro itself, but not necessarily to the macro's caller. The macro can
"export" a target as a public API by forwarding the value of its own
visibility attribute, as in some_rule(..., visibility = visibility)" [0]

Without this propagation, the generated unit test targets default to
being private to their macro and are not visible to callers or other
targets in the same package (e.g., stamp groups).

[0] https://bazel.build/extending/macros#visibility

TAG=agy
CONV=dd0b3dca-f04a-4a46-a853-0f7ac1e93a58

Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1621574
Original-Original-Revision: a58513d5272be1da26683842802643f614bbf32e
GitOrigin-RevId: 18c8bbb9e12def1fd3d2bcf5afae95191624ffc8
Change-Id: Ia1a83bbeb8696e1c57f0890d4ed5eb8d34eb0e05
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1621694
Cr-Commit-Position: refs/heads/main@{#193207}
1 file changed
tree: 34725ac0c90ae656b1ac6485bcb5969372a772de
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.