Skip to content

Commit

Permalink
Auto merge of #111278 - EFanZh:implement-from-array-refs-for-vec, r=d…
Browse files Browse the repository at this point in the history
…tolnay

Implement `From<{&,&mut} [T; N]>` for `Vec<T>` where `T: Clone`

Currently, if `T` implements `Clone`, we can create a `Vec<T>` from an `&[T]` or an `&mut [T]`, can we also support creating a `Vec<T>` from an `&[T; N]` or an `&mut [T; N]`? Also, do I need to add `#[inline]` to the implementation?

ACP: rust-lang/libs-team#220. [Accepted]

Closes #100880.
  • Loading branch information
bors committed Sep 28, 2023
2 parents a0ffc74 + 985bfec commit 1b04189
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 1b04189

Please sign in to comment.