Re: [PATCH v2 07/10] rust: alloc: update `VecExt` to take allocation flags
From: Miguel Ojeda
Date: Wed Mar 27 2024 - 06:50:19 EST
On Wed, Mar 27, 2024 at 4:48 AM Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
>
> /me likes this! ;-) Too bad `write_slice_cloned()` is not stablized:
>
> https://doc.rust-lang.org/core/mem/union.MaybeUninit.html#method.write_slice_cloned
For future reference, it will be called `clone_from_slice` soon (1.78):
https://doc.rust-lang.org/beta/core/mem/union.MaybeUninit.html#method.clone_from_slice
https://github.com/rust-lang/rust/issues/79995
This could be a "good first issue", i.e. to replace these if these get
stabilized (which seems likely).
Though that one has to account for panics -- it would be good to check
codegen if we do replace it.
Cheers,
Miguel