diff --git a/src/doc/unstable-book/src/library-features/try-trait.md b/src/doc/unstable-book/src/library-features/try-trait.md index f08929d4e3c..7289e95c2a0 100644 --- a/src/doc/unstable-book/src/library-features/try-trait.md +++ b/src/doc/unstable-book/src/library-features/try-trait.md @@ -1,7 +1,7 @@ # `try_trait` -The tracking issue for this feature is: [#31436] +The tracking issue for this feature is: [#42327] -[#31436]: https://github.com/rust-lang/rust/issues/31436 +[#42327]: https://github.com/rust-lang/rust/issues/42327 ------------------------ diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 912f3d4ff07..a1de8fe76e2 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -2988,13 +2988,13 @@ impl Try for _DummyErrorType { /// in terms of a success/failure dichotomy. This trait allows both /// extracting those success or failure values from an existing instance and /// creating a new instance from a success or failure value. -#[unstable(feature = "try_trait", issue = "31436")] +#[unstable(feature = "try_trait", issue = "42327")] pub trait Try { /// The type of this value when viewed as successful. - #[unstable(feature = "try_trait", issue = "31436")] + #[unstable(feature = "try_trait", issue = "42327")] type Ok; /// The type of this value when viewed as failed. - #[unstable(feature = "try_trait", issue = "31436")] + #[unstable(feature = "try_trait", issue = "42327")] type Error; /// Applies the "?" operator. A return of `Ok(t)` means that the @@ -3006,16 +3006,16 @@ pub trait Try { /// in the return type of the enclosing scope (which must itself implement /// `Try`). Specifically, the value `X::from_error(From::from(e))` /// is returned, where `X` is the return type of the enclosing function. - #[unstable(feature = "try_trait", issue = "31436")] + #[unstable(feature = "try_trait", issue = "42327")] fn into_result(self) -> Result; /// Wrap an error value to construct the composite result. For example, /// `Result::Err(x)` and `Result::from_error(x)` are equivalent. - #[unstable(feature = "try_trait", issue = "31436")] + #[unstable(feature = "try_trait", issue = "42327")] fn from_error(v: Self::Error) -> Self; /// Wrap an OK value to construct the composite result. For example, /// `Result::Ok(x)` and `Result::from_ok(x)` are equivalent. - #[unstable(feature = "try_trait", issue = "31436")] + #[unstable(feature = "try_trait", issue = "42327")] fn from_ok(v: Self::Ok) -> Self; } diff --git a/src/libcore/result.rs b/src/libcore/result.rs index a02c19f5f38..df7fff0df92 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -1110,7 +1110,7 @@ impl> FromIterator> for Result { } } -#[unstable(feature = "try_trait", issue = "31436")] +#[unstable(feature = "try_trait", issue = "42327")] impl ops::Try for Result { type Ok = T; type Error = E;