Skip to content

Commit

Permalink
Rollup merge of #80968 - KodrAus:stabilize/poll_map, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Stabilize the poll_map feature

Stabilizes the `poll_map` feature as tracked by #63514 (with a completed FCP).
  • Loading branch information
m-ou-se committed Jan 16, 2021
2 parents 79a8499 + b2f5048 commit dba6c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/task/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit dba6c9c

Please sign in to comment.