Re: [PATCH 3/3] rust: list: add warning to List::remove docs about mem::take
From: Miguel Ojeda
Date: Wed Nov 12 2025 - 05:21:53 EST
On Tue, Nov 11, 2025 at 3:23 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> + /// When using this method, be careful with using `mem::take` on the same list as that may
> + /// result in violating the safety requirements of this method.
I suggested adding an example or similar to hopefully help prevent
this in the future, and this note is "to the point", so that is great.
Thanks for adding it!
Nit: intra-doc link [`core::mem::take`]
Cheers,
Miguel