@@ -112,7 +112,7 @@ use crate::ops::ControlFlow;
112112/// R::from_output(accum)
113113/// }
114114/// ```
115- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
115+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
116116#[ rustc_on_unimplemented(
117117 on(
118118 all( from_desugaring = "TryBlock" ) ,
@@ -130,7 +130,7 @@ use crate::ops::ControlFlow;
130130#[ lang = "Try" ]
131131pub trait Try : FromResidual {
132132 /// The type of the value produced by `?` when *not* short-circuiting.
133- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
133+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
134134 type Output ;
135135
136136 /// The type of the value passed to [`FromResidual::from_residual`]
@@ -154,7 +154,7 @@ pub trait Try: FromResidual {
154154 /// then typically you can use `Foo<std::convert::Infallible>` as its `Residual`
155155 /// type: that type will have a "hole" in the correct place, and will maintain the
156156 /// "foo-ness" of the residual so other types need to opt-in to interconversion.
157- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
157+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
158158 type Residual ;
159159
160160 /// Constructs the type from its `Output` type.
@@ -186,7 +186,7 @@ pub trait Try: FromResidual {
186186 /// assert_eq!(r, Some(4));
187187 /// ```
188188 #[ lang = "from_output" ]
189- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
189+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
190190 fn from_output ( output : Self :: Output ) -> Self ;
191191
192192 /// Used in `?` to decide whether the operator should produce a value
@@ -213,7 +213,7 @@ pub trait Try: FromResidual {
213213 /// );
214214 /// ```
215215 #[ lang = "branch" ]
216- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
216+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
217217 fn branch ( self ) -> ControlFlow < Self :: Residual , Self :: Output > ;
218218}
219219
@@ -303,7 +303,7 @@ pub trait Try: FromResidual {
303303 ) ,
304304) ]
305305#[ rustc_diagnostic_item = "FromResidual" ]
306- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
306+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
307307pub trait FromResidual < R = <Self as Try >:: Residual > {
308308 /// Constructs the type from a compatible `Residual` type.
309309 ///
@@ -326,7 +326,7 @@ pub trait FromResidual<R = <Self as Try>::Residual> {
326326 /// );
327327 /// ```
328328 #[ lang = "from_residual" ]
329- #[ unstable( feature = "try_trait_v2" , issue = "84277" ) ]
329+ #[ unstable( feature = "try_trait_v2" , issue = "84277" , old_name = "try_trait" ) ]
330330 fn from_residual ( residual : R ) -> Self ;
331331}
332332
0 commit comments