]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
Rollup merge of #95098 - shepmaster:vec-from-array-ref, r=dtolnay
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Mon, 28 Mar 2022 02:12:11 +0000 (04:12 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Mar 2022 02:12:11 +0000 (04:12 +0200)
commit8bfc03fde037ba4b64c29d14c00b04586dc909cf
treee577677099c1194574526d6cb17a537f772acff6
parentd88c03c0f1082d01294ef8cf5d14194d5d1284fa
parent5dd702763ae0e112332a4447171adbed51aeee3d
Rollup merge of #95098 - shepmaster:vec-from-array-ref, r=dtolnay

impl From<&[T; N]> and From<&mut [T; N]> for Vec<T>

I really wanted to write:

```rust
fn example(a: impl Into<Vec<u8>>) {}

fn main() {
    example(b"raw");
}
```
library/alloc/src/vec/mod.rs