This is a tracking issue for the RFC "try_trait_v2
: A new design for the ?
desugaring" (rust-lang/rfcs#3058).
The feature gate for the issue is #![feature(try_trait_v2)]
.
This obviates rust-lang/rfcs#1859, tracked in #42327.
About tracking issuesTracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
TryV2
alias #88223?
desugaring #85133FromResidual
but not Try
FromResidual
better (Issue rustdoc removes Try from <Self as Try>::Residual in std::ops::FromResidual #85454)Infallible
are either fine that way or have been replaced by !
Iterator::try_fold
try_fold
for iterators for internal iteration #62606)fold
be implemented in terms of try_fold
, so that both don't need to be overridden.)From RFC:
Try
use in the associated types/traits? Output+residual, continue+break, or something else entirely?From experience in nightly:
FromResidual
from a type that's never actually produced as a residual ( Fix the types in one of the FromResidual
implementations rwf2/Rocket#1645). But that would add more friction for cases not using the Foo<!>
pattern, so may not be worth it.
array::{try_from_fn, try_map}
and Iterator::try_find
generic over Try
#91286, that might look like changing the associated type Residual;
to type Residual: Residual<Self::Output>;
.try_trait_v2
library basics #84092try_trait
from stdarch
, Remove #![feature(try_trait)]
from a test stdarch#1142try_trait_v2
#84767schneiderfelipe, jablonskim, HarmoGlace, OnlyLys, c410-f3r and 59 moreschneiderfelipe, musjj, migueldamota, ribru17 and bbb651jhpratt, dbofmmbt, runiq, stijnh, joseluis and 113 moreeliascarv, schneiderfelipe, musjj, migueldamota, ribru17 and 1 moreeliascarv, schneiderfelipe, hiroki-chen, musjj, migueldamota and 2 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4