]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #74194 - mbrubeck:slice-eq, r=sfackler
authorbors <bors@rust-lang.org>
Wed, 7 Oct 2020 01:20:11 +0000 (01:20 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Oct 2020 01:20:11 +0000 (01:20 +0000)
commit5779815f896fa6e21c04a5efb378aa6ba009a471
tree2d6407177968a53ea460e74e83e3b99a49392bff
parent59dafb876e125c49fca93820c5ef22da3fcb8644
parentb4b383981abac7ca8aa180c7ae3e28876615b887
Auto merge of #74194 - mbrubeck:slice-eq, r=sfackler

Add PartialEq impls for Vec <-> slice

This is a follow-up to #71660 and rust-lang/rfcs#2917 to add two more missing vec/slice PartialEq impls:

```
impl<A, B> PartialEq<[B]> for Vec<A> where A: PartialEq<B> { .. }
impl<A, B> PartialEq<Vec<B>> for [A] where A: PartialEq<B> { .. }
```

Since this is insta-stable, it should go through the `@rust-lang/libs` FCP process.  Note that I used version 1.47.0 for the `stable` attribute because I assume this will not merge before the 1.46.0 branch is cut next week.
library/alloc/src/vec.rs
library/alloc/tests/vec.rs