about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-17 19:46:04 +0000
committerbors <bors@rust-lang.org>2022-10-17 19:46:04 +0000
commit06f049a35535d26d5c8426d4f782f78277b41aa1 (patch)
tree2e3c9b5a12a9883bb3cebc920fbca541ec99c98b /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent9c2797de2214f5c2feeca2c466cdd3236530a2b0 (diff)
parent4d3a31caf08fb4591ce2eaa0c83474d2346d0a23 (diff)
downloadrust-06f049a35535d26d5c8426d4f782f78277b41aa1.tar.gz
rust-06f049a35535d26d5c8426d4f782f78277b41aa1.zip
Auto merge of #101837 - scottmcm:box-array-from-vec, r=m-ou-se
Add `Box<[T; N]>: TryFrom<Vec<T>>`

We have `[T; N]: TryFrom<Vec<T>>` (#76310) and `Box<[T; N]>: TryFrom<Box<[T]>>`, but not this combination.

`vec.into_boxed_slice().try_into()` isn't quite a replacement for this, as that'll reallocate unnecessarily in the error case.

**Insta-stable, so needs an FCP**

(I tried to make this work with `, A`, but that's disallowed because of `#[fundamental]` https://github.com/rust-lang/rust/issues/29635#issuecomment-1247598385)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions