diff options
author | Mara Bos <m-ou.se@m-ou.se> | 2022-01-18 22:18:16 +0100 |
---|---|---|
committer | Mara Bos <m-ou.se@m-ou.se> | 2022-01-18 22:18:16 +0100 |
commit | 148234ff73aa649178f92f529b9f5b0fc5adf3ed (patch) | |
tree | 26b596d58d4d088de645dea0c9c025422bbc1577 | |
parent | aaebae973f7a4fafd24cb6c9fad7a6beba205b74 (diff) | |
download | rust-148234ff73aa649178f92f529b9f5b0fc5adf3ed.tar.gz |
Add is_some_with tracking issue number.
-rw-r--r-- | library/core/src/option.rs | 2 | ||||
-rw-r--r-- | library/core/src/result.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index d9ee289f216..e8850176f7c 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -567,7 +567,7 @@ impl<T> Option<T> { /// ``` #[must_use] #[inline] - #[unstable(feature = "is_some_with", issue = "none")] + #[unstable(feature = "is_some_with", issue = "93050")] pub fn is_some_with(&self, f: impl FnOnce(&T) -> bool) -> bool { matches!(self, Some(x) if f(x)) } diff --git a/library/core/src/result.rs b/library/core/src/result.rs index f4f3d84e62b..82d99cef458 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -558,7 +558,7 @@ impl<T, E> Result<T, E> { /// ``` #[must_use] #[inline] - #[unstable(feature = "is_some_with", issue = "none")] + #[unstable(feature = "is_some_with", issue = "93050")] pub fn is_ok_with(&self, f: impl FnOnce(&T) -> bool) -> bool { matches!(self, Ok(x) if f(x)) } @@ -600,7 +600,7 @@ impl<T, E> Result<T, E> { /// ``` #[must_use] #[inline] - #[unstable(feature = "is_some_with", issue = "none")] + #[unstable(feature = "is_some_with", issue = "93050")] pub fn is_err_with(&self, f: impl FnOnce(&E) -> bool) -> bool { matches!(self, Err(x) if f(x)) } |