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

Gary Guo
2026-04-01T14:12:07Z

On Wed Apr 1, 2026 at 12:45 PM BST, 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@kernel.org>

Reviewed-by: Gary Guo <gary@garyguo.net>

> ---
> rust/kernel/alloc/allocator/iter.rs | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)