Re: [PATCH v4 1/6] rust: arc: use `NonNull::new_unchecked`

From: Andreas Hindborg
Date: Tue Nov 12 2024 - 06:13:55 EST


"Tamir Duberstein" <tamird@xxxxxxxxx> writes:

> There is no need to check (and panic on violations of) the safety
> requirements on `ForeignOwnable` functions. Avoiding the check is
> consistent with the implementation of `ForeignOwnable` for `Box`.
>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
> ---

Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>


Best regards,
Andreas Hindborg