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

From: Danilo Krummrich

Date: Wed Apr 01 2026 - 08:38:48 EST


On Wed Apr 1, 2026 at 1:45 PM CEST, Miguel Ojeda 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.
>
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>

Acked-by: Danilo Krummrich <dakr@xxxxxxxxxx>