-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
#18424 "Implement collections reform" was closed with one part left not implemented yet:
Tracking issue for rust-lang/rfcs#235, there are a number of sub-issues associated with this:
[...]
Backwards compatible changes that will require additional language features:
- Add
ByNeed
andPredicate
traits (needs negative bounds to work with unboxed closures)
In particular, making Iterator::position
generic over a Predicate
trait would help replacing [T]::position_elem
, which was deprecated in #26914, without the verbosity of .position(|i| i == &x)
CC @alexcrichton, @aturon
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.