Re: [PATCH 2/2] rust: pin-init: improve documentation for `Zeroable` derive macros
From: Christian Schrefl
Date: Sat Apr 26 2025 - 07:36:34 EST
On 26.04.25 10:39 AM, Benno Lossin wrote:
> Specify that both `MaybeZeroable` and `Zeroable` work on `union`s. Add a
> doc example for a union. Also include an example with visibility on the
> field.
>
> Link: https://github.com/Rust-for-Linux/pin-init/pull/48/commits/ab0985a0e08df06c60a32ca5888f74adcc2c1cf3
> Signed-off-by: Benno Lossin <benno.lossin@xxxxxxxxx>
> ---
> Also see the compile-fail & macro expansion tests added by this commit
> (not included in the kernel, since the test files are only upstream):
>
> https://github.com/Rust-for-Linux/pin-init/pull/48/commits/278070d12b41f0fca1b0d6dff6c5f38f3cf46044
> ---
Reviewed-by: Christian Schrefl <chrisi.schrefl@xxxxxxxxx>