Closed gootorov closed 1 year ago
Seems good to me.
Let's do a libs-api team FCP on your PR, since this would need to be instantly stable.
It's not insta-stable because Allocator isn't stable (FCP seems fine to me either way, just pointing it out).
You are right, good call.
Proposal
Problem statement
PartialOrd
cannot currently be used on vectors allocated with different allocators.Motivating examples or use cases
PartialEq<Vec<U, A2>> for Vec<T, A1>
.Solution sketch
See PR: https://github.com/rust-lang/rust/pull/112632
Alternatives
Compare underlying slices via
Deref<Target = [T]>
.