diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2021-04-14 16:40:23 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2021-05-06 11:37:44 -0700 |
| commit | c10eec3a1ca0a328f406f6b752eb0fd3a90dca91 (patch) | |
| tree | 128a2ba89c6537a210def5130447fdafa8ce7fcc /library/core/src/task | |
| parent | d44f647ffcff0e1ff2c0f45b6a0ce9796d80f1ca (diff) | |
| download | rust-c10eec3a1ca0a328f406f6b752eb0fd3a90dca91.tar.gz rust-c10eec3a1ca0a328f406f6b752eb0fd3a90dca91.zip | |
Bootstrapping preparation for the library
Since just `ops::Try` will need to change meaning.
Diffstat (limited to 'library/core/src/task')
| -rw-r--r-- | library/core/src/task/poll.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/task/poll.rs b/library/core/src/task/poll.rs index 2765c21a46d..2ccfc22c27c 100644 --- a/library/core/src/task/poll.rs +++ b/library/core/src/task/poll.rs @@ -1,7 +1,7 @@ #![stable(feature = "futures_api", since = "1.36.0")] use crate::convert; -use crate::ops::{self, ControlFlow, Try}; +use crate::ops::{self, ControlFlow}; use crate::result::Result; /// Indicates whether a value is available or if the current task has been @@ -129,7 +129,7 @@ impl<T> From<T> for Poll<T> { } #[stable(feature = "futures_api", since = "1.36.0")] -impl<T, E> Try for Poll<Result<T, E>> { +impl<T, E> ops::TryV1 for Poll<Result<T, E>> { type Ok = Poll<T>; type Error = E; @@ -184,7 +184,7 @@ impl<T, E, F: From<E>> ops::FromResidual<Result<convert::Infallible, E>> for Pol } #[stable(feature = "futures_api", since = "1.36.0")] -impl<T, E> Try for Poll<Option<Result<T, E>>> { +impl<T, E> ops::TryV1 for Poll<Option<Result<T, E>>> { type Ok = Poll<Option<T>>; type Error = E; |
