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

From: Alice Ryhl
Date: Thu Oct 31 2024 - 04:37:49 EST


On Wed, Oct 30, 2024 at 9:46 PM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
>
> 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`.
>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>