lkml.org 
[lkml]   [2024]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 07/10] rust: alloc: update `VecExt` to take allocation flags
On Wed, Mar 27, 2024 at 4:48 AM Boqun Feng <boqun.feng@gmail.com> 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

\
 
 \ /
  Last update: 2024-05-27 16:10    [W:0.453 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site