diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-01-16 17:30:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-16 17:30:04 +0000 |
| commit | dba6c9c6d1ddd44cd0bd15ce9df5de6afc0eecc8 (patch) | |
| tree | 87ad3886b0463ffcc7cca74766835491c295287e | |
| parent | 79a8499f77dcd22d5d43fad88300bc094af9f3f9 (diff) | |
| parent | b2f504801c5c7cadc1e5f0c950ec11cef7c1a3ef (diff) | |
| download | rust-dba6c9c6d1ddd44cd0bd15ce9df5de6afc0eecc8.tar.gz rust-dba6c9c6d1ddd44cd0bd15ce9df5de6afc0eecc8.zip | |
Rollup merge of #80968 - KodrAus:stabilize/poll_map, r=Mark-Simulacrum
Stabilize the poll_map feature Stabilizes the `poll_map` feature as tracked by #63514 (with a completed FCP).
| -rw-r--r-- | library/core/src/task/poll.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/task/poll.rs b/library/core/src/task/poll.rs index 6851f3fcd2f..42c9d9f0cc0 100644 --- a/library/core/src/task/poll.rs +++ b/library/core/src/task/poll.rs @@ -84,7 +84,7 @@ impl<T, E> Poll<Result<T, E>> { impl<T, E> Poll<Option<Result<T, E>>> { /// Changes the success value of this `Poll` with the closure provided. - #[unstable(feature = "poll_map", issue = "63514")] + #[stable(feature = "poll_map", since = "1.51.0")] pub fn map_ok<U, F>(self, f: F) -> Poll<Option<Result<U, E>>> where F: FnOnce(T) -> U, @@ -98,7 +98,7 @@ impl<T, E> Poll<Option<Result<T, E>>> { } /// Changes the error value of this `Poll` with the closure provided. - #[unstable(feature = "poll_map", issue = "63514")] + #[stable(feature = "poll_map", since = "1.51.0")] pub fn map_err<U, F>(self, f: F) -> Poll<Option<Result<T, U>>> where F: FnOnce(E) -> U, |
