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).
This commit is contained in:
commit
dba6c9c6d1
@ -84,7 +84,7 @@ pub fn map_err<U, F>(self, f: F) -> Poll<Result<T, U>>
|
||||
|
||||
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 @@ pub fn map_ok<U, F>(self, f: F) -> Poll<Option<Result<U, 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,
|
||||
|
Loading…
Reference in New Issue
Block a user