-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for ops::Residual (feature try_trait_v2_residual) #91285
Copy link
Copy link
Open
Labels
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 RFCF-try_trait_v2Tracking issue for RFC#3058Tracking issue for RFC#3058T-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.
Metadata
Metadata
Assignees
Labels
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 RFCF-try_trait_v2Tracking issue for RFC#3058Tracking issue for RFC#3058T-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
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(try_trait_v2_residual)]This is a tracking issue for the
ops::Residualtrait. cc rust-lang/rfcs#3721This is used by
try_*APIs that need to change from one member of a family to another, such astry_array_from_fn#89379array::try_map#79711For example, the closure passed to
Iterator::try_findreturnsFoo<bool>, but the method wants to be able to returnFoo<Option<<Self as Iterator>::Item>>.Public API
Steps / History
array::{try_from_fn, try_map}andIterator::try_findgeneric overTry#91286Unresolved Questions
Try::Residualis renamed (an open question in Tracking Issue fortry_trait_v2, A new design for the?desugaring (RFC#3058) #84277), this this probably should be too.