-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
ACP-acceptedAPI Change Proposal is accepted (seconded with no objections)API Change Proposal is accepted (seconded with no objections)T-libs-apiapi-change-proposalA proposal to add or alter unstable APIs in the standard librariesA proposal to add or alter unstable APIs in the standard libraries
Description
Proposal
Problem statement
PartialOrd
cannot currently be used on vectors allocated with different allocators.
Motivating examples or use cases
- It is consistent with
PartialEq<Vec<U, A2>> for Vec<T, A1>
. - Writing tests for/using data structures that are parameterized by an allocator may be tedious due to the fact that an underlying vector cannot be compared with different allocators.
Solution sketch
See PR: rust-lang/rust#112632
Alternatives
Compare underlying slices via Deref<Target = [T]>
.
Metadata
Metadata
Assignees
Labels
ACP-acceptedAPI Change Proposal is accepted (seconded with no objections)API Change Proposal is accepted (seconded with no objections)T-libs-apiapi-change-proposalA proposal to add or alter unstable APIs in the standard librariesA proposal to add or alter unstable APIs in the standard libraries