-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Tracking issue for ops::Try (try_trait feature) #42327
Copy link
Copy link
Closed
Labels
A-error-handlingArea: Error handlingArea: Error handlingB-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-langRelevant to the language teamRelevant to the language teamT-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
Metadata
Metadata
Assignees
Labels
A-error-handlingArea: Error handlingArea: Error handlingB-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-langRelevant to the language teamRelevant to the language teamT-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.
Type
Fields
No fields configured for issues without a type.
Feature gate:
#![feature(try_trait)]This is a tracking issue for the
Trytrait from rust-lang/rfcs#1859.Split off from #31436 for clarity (per #42275 (comment))
Public API
Steps / History
Stabilizing this will allow people to implementIterator::try_foldAs part of stabilizing, re-open PR Document implementingtry_foldfor iterators for internal iteration #62606 to document implementing try_fold for iteratorsEnsure that the default implementations of other things have the desired long-term DAG, since changing them is essentially impossible later. (Specifically, it would be nice to havefoldbe implemented in terms oftry_fold, so that both don't need to be overridden.)try_trait_v2tracking issueLower
?toTryinstead ofCarrier#42275Deprecate and remove these in favour of the new versions.
Unresolved Questions
These resulted in a new rust-lang/rfcs#3058, tracked in #84277
TrytraitTryContinueAPI: Tracking issue forops::Try(try_traitfeature) #42327 (comment) and Tracking issue forops::Try(try_traitfeature) #42327 (comment)ops::Try(try_traitfeature) #42327 (comment)ops::Try(try_traitfeature) #42327 (comment)ops::Try(try_traitfeature) #42327 (comment)