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

From: Gary Guo

Date: Mon Jan 12 2026 - 14:13:28 EST


On Sun Jan 11, 2026 at 12:25 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>
> Signed-off-by: Benno Lossin <lossin@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

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