Re: [PATCH v8 11/29] rust: alloc: implement kernel `Box`
From: Miguel Ojeda
Date: Thu Oct 03 2024 - 19:01:13 EST
On Tue, Oct 1, 2024 at 5:01 PM Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
>
> + /// # Examples
> + ///
> + /// ```
> + /// let x = KBox::new(24, GFP_KERNEL)?;
> + /// let ptr = KBox::into_raw(x);
> + /// let x = unsafe { KBox::from_raw(ptr) };
This is the only place that, after applying your series on top of the
lints one (i.e. current `rust-next`), triggered a missing `// SAFETY`
comment lint :)
If there is no new version, what do you want me to write when I apply it?
Thanks!
Cheers,
Miguel