Re: [PATCH 11/33] rust: alloc: simplify with `NonNull::add()` now that it is stable

From: Tamir Duberstein

Date: Wed Apr 01 2026 - 19:06:26 EST


On Wed, 01 Apr 2026 13:45:18 +0200, Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
> Currently we need to go through raw pointers and then re-create the
> `NonNull` from the result of offsetting the raw pointer.
>
> Thus, now that we bump the Rust minimum version, simplify using
> `NonNull::add()` and clean the TODO note.

This description is inconsistent with the previous one which had
citations for both the feature (function in this case) and the feature
in which it became stable (available in this case). I don't prefer
either style in particular, just that things are consistent.

Reviewed-by: Tamir Duberstein <tamird@xxxxxxxxxx>

--
Tamir Duberstein <tamird@xxxxxxxxxx>