Re: [PATCH v4 00/13] Quality of life improvements for pin-init

From: Miguel Ojeda
Date: Mon Aug 21 2023 - 08:33:44 EST


On Mon, Aug 14, 2023 at 10:46 AM Benno Lossin <benno.lossin@xxxxxxxxx> wrote:
>
> This patch series adds several improvements to the pin-init api:
> - a derive macro for the `Zeroable` trait,
> - makes hygiene of fields in initializers behave like normal struct
> initializers would behave,
> - prevent stackoverflow without optimizations
> - add `..Zeroable::zeroed()` syntax to zero missing fields,
> - support arbitrary paths in initializer macros.

Applied to `rust-next` with a few changes -- thanks everyone!

- Rebased on top of `rust-next` instead of `rust-dev`, which
requires a small `use` line change due to the KUnit patches being
there back then.

- Added an `ignore` for the `macros/lib.rs` example to avoid
breaking `rusttest`.

- Cleaned a few trivial nits I noticed in several commits.

Cheers,
Miguel