Re: [PATCH v20 1/8] rust: alloc: add `KBox::into_non_null`
"Danilo Krummrich" <[email protected]>
| Newsgroups | gmane.linux.kernel.pci,gmane.linux.kernel.rust,gmane.linux.kernel,gmane.linux.kernel.mm,gmane.linux.block,gmane.linux.kernel.lsm,gmane.comp.video.dri.devel,gmane.linux.file-systems,gmane.linux.power-management.general,gmane.linux.pwm,gmane.linux.usb.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon Aug 24, 2026 at 1:17 PM CEST, Andreas Hindborg wrote: > Add a method to consume a `Box<T, A>` and return a `NonNull<T>`. This > is a convenience wrapper around `Self::into_raw` for callers that need > a `NonNull` pointer rather than a raw pointer. > > Signed-off-by: Andreas Hindborg <[email protected]> > Reviewed-by: Alice Ryhl <[email protected]> > Reviewed-by: Gary Guo <[email protected]> Acked-by: Danilo Krummrich <[email protected]>