Re: [PATCH v2 1/2] rust: pin-init: internal: init: remove `#[disable_initialized_field_access]`

From: Alice Ryhl

Date: Wed Mar 04 2026 - 02:07:58 EST


On Wed, Mar 4, 2026 at 8:00 AM Benno Lossin <lossin@xxxxxxxxxx> wrote:
> >> add escape hatch for referencing initialized fields"). Thus remove the
> >> `#[disable_initialized_field_access]` attribute from `init!`, which is
> >> the only safe way to create an initializer handling unaligned fields.
> >>
> >> If support for in-place initializing structs with unaligned fields is
> >> required in the future, we could figure out a solution. This is tracked
> >> in [2].
> >>
> >> Reported-by: Gary Guo <gary@xxxxxxxxxxx>
> >> Link: https://rust-for-linux.zulipchat.com/#narrow/channel/561532-pin-init/topic/initialized.20field.20accessor.20detection/with/576210658 [1]
> >
> > Should probably be Closes: rather than Link:.
>
> I figured that we can't really "close" a Zulip topic (we can mark it as
> completed, but that topic was originally about the field accessors, so
> not sure if this makes much sense.

I mean, the Reported-by / Closes pair is most commonly used with lore
links to syzbot reports, which isn't much different.

Alice