about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-16 22:30:54 +0200
committerGitHub <noreply@github.com>2022-07-16 22:30:54 +0200
commitddc32d1633b796a3fdbe09724407fa814fa8ed56 (patch)
tree06c773ed64c09e48c7a00227f5a0a282259aad26 /compiler/rustc_const_eval/src/errors.rs
parent4805c215c8e1df5073898436ae6941b409d54c7c (diff)
parentaeb949753e80ca741df89612e446a77d1c16e3ab (diff)
downloadrust-ddc32d1633b796a3fdbe09724407fa814fa8ed56.tar.gz
rust-ddc32d1633b796a3fdbe09724407fa814fa8ed56.zip
Rollup merge of #99317 - yanchith:borrow-vec-ta-as-slice-t, r=Mark-Simulacrum
Borrow Vec<T, A> as [T]

Hello all,

When `Vec` was parametrized with `A`, the `Borrow` impls were omitted and currently `Vec<T, A>` can't be borrowed as `[T]`. This PR fixes that.

This was probably missed, because the `Borrow` impls are in a different file - `src/alloc/slice.rs`.

We briefly discussed this here: https://github.com/rust-lang/wg-allocators/issues/96 and I was told to go ahead and make a PR :)

I tested this by building the toolchain and building my code that needed the `Borrow` impl against it, but let me know if I should add any tests to this PR.
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
0 files changed, 0 insertions, 0 deletions