Re: [PATCH v3 14/15] rust: pin-init: internal: init: simplify Zeroable safety check

From: Gary Guo

Date: Wed Jan 14 2026 - 13:59:00 EST


On Wed Jan 14, 2026 at 6:18 PM GMT, Benno Lossin wrote:
> The `Zeroable` type check uses a small dance with a raw pointer to aid
> type inference. It turns out that this is not necessary and type
> inference is powerful enough to resolve any ambiguity. Thus remove it.
>
> Suggested-by: Gary Guo <gary@xxxxxxxxxxx>
> Tested-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> Signed-off-by: Benno Lossin <lossin@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> Changes in v3: none
> Changes in v2: added this patch
> ---
> rust/pin-init/internal/src/init.rs | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)