Skip to content

Commit

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

Stabilize the poll_map feature

Stabilizes the `poll_map` feature as tracked by rust-lang#63514 (with a completed FCP).
  • Loading branch information
JohnTitor authored Jan 16, 2021
2 parents e9a6063 + b2f5048 commit 605557f
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 605557f

Please sign in to comment.