implement PartialEq<VecDeque<U>> for Vec<T>, &[T], &mut [T], [T; N], &[T; N] and &mut [T; N] #163753
@rfcbot merge libs
@clarfonthey has proposed to merge this. The next step is review by the rest of the tagged team members:
[ ] @ChrisDenton
[x] @Mark-Simulacrum
[x] @cuviper
[x] @dtolnay
[x] @joshtriplett
[ ] @nia-e
[ ] @the8472
[x] @thomcc
No concerns currently listed.
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
cc @rust-lang/libs-ping: FCP proposed for libs, please feel free to register concerns.
See this document for info about what commands tagged team members can give me.
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
Why are the two allocators both A? Is there a reason to restrict to only comparing a Vec and VecDeque using the same allocator?
Valid point, and I think unfortunately this might warrant another crater run to fix. Although it's worth clarifying that only Vec stably supports allocators at the moment.
Although it's worth clarifying that only Vec stably supports allocators at the moment.
We did think of that but it doesn’t actually make a difference to this generalization. Vec having a choice of allocators means we may want to compare it with an arbitrary allocator to VecDeque<_, Global>.
pthariensflame
clarfonthey
r? libs
This re-commits rust-lang/rust#152972 but in a way where we can actually do FCP. It was reverted in rust-lang/rust#163752.
API stabilization: