Re: [PATCH 0/3] rust: pin-init: reduce visibility of projection methods to declutter rustdoc

From: Gary Guo

Date: Sun Nov 22 2026 - 09:31:47 EST



On Wed, 18 Nov 2026 14:31:19 +0000, Gary Guo wrote:
> Currently all types that use `#[pin_data]` will have projection method
> generated and visible in rustdoc. But for many types, all fields are
> private and thus these projection methods are not useful as public APIs.
>
> Thus, compute a least upper bound (LUB) of field visibility and use that as
> visibility for projection methods instead. This means that if none of the
> fields are accessible publicly, the projection methods won't be as well and
> thus will be hidden from rustdoc.
>
> [...]

Applied, thanks!

[1/3] rust: pin-init: internal: allow `clippy::large_unopt_stack_frames`
commit: 5a2024c03eb697463e738bb216b3d321aa278877
[2/3] rust: pin-init: internal: use visibility of the most visible field for projection
commit: ac4e562262056c02851e33163b19fab9feea6d60
[3/3] rust: pin-init: internal: hide `HasPinData` impl
commit: 5eb5b404e6e7631a986333f00e7b3b18aafcfaa8

Best regards,
--
Gary Guo <gary@xxxxxxxxxxx>