diff options
| author | Isaac van Bakel <ivb@vanbakel.io> | 2018-08-29 22:51:54 +0100 |
|---|---|---|
| committer | Isaac van Bakel <ivb@vanbakel.io> | 2018-08-29 22:51:54 +0100 |
| commit | 3eda9058cfd6f42a0b2b46ad2605f0dc52981a77 (patch) | |
| tree | debaf95356de1da5aaf3c43c7958df3123bc6880 | |
| parent | 71b16d8350d6f3dcc9b1d624de9332d99ea3acd0 (diff) | |
| download | rust-3eda9058cfd6f42a0b2b46ad2605f0dc52981a77.tar.gz rust-3eda9058cfd6f42a0b2b46ad2605f0dc52981a77.zip | |
Corrected feature status of Result::map_or_else
map_or_else is now correctly labelled unstable and points to the tracking issue on rust-lang/rust
| -rw-r--r-- | src/libcore/result.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 0e10c41ece7..22a7cedc189 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -494,7 +494,7 @@ impl<T, E> Result<T, E> { /// assert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42); /// ``` #[inline] - #[stable(feature = "result_map_or_else", since = "1.30.0")] + #[unstable(feature = "result_map_or_else", issue = "53268")] pub fn map_or_else<U, M: FnOnce(T) -> U, F: FnOnce(E) -> U>(self, fallback: F, map: M) -> U { self.map(map).unwrap_or_else(fallback) } |
