Skip to content

Commit 148234f

Browse files
committed
Add is_some_with tracking issue number.
1 parent aaebae9 commit 148234f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: library/core/src/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ impl<T> Option<T> {
567567
/// ```
568568
#[must_use]
569569
#[inline]
570-
#[unstable(feature = "is_some_with", issue = "none")]
570+
#[unstable(feature = "is_some_with", issue = "93050")]
571571
pub fn is_some_with(&self, f: impl FnOnce(&T) -> bool) -> bool {
572572
matches!(self, Some(x) if f(x))
573573
}

Diff for: library/core/src/result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ impl<T, E> Result<T, E> {
558558
/// ```
559559
#[must_use]
560560
#[inline]
561-
#[unstable(feature = "is_some_with", issue = "none")]
561+
#[unstable(feature = "is_some_with", issue = "93050")]
562562
pub fn is_ok_with(&self, f: impl FnOnce(&T) -> bool) -> bool {
563563
matches!(self, Ok(x) if f(x))
564564
}
@@ -600,7 +600,7 @@ impl<T, E> Result<T, E> {
600600
/// ```
601601
#[must_use]
602602
#[inline]
603-
#[unstable(feature = "is_some_with", issue = "none")]
603+
#[unstable(feature = "is_some_with", issue = "93050")]
604604
pub fn is_err_with(&self, f: impl FnOnce(&E) -> bool) -> bool {
605605
matches!(self, Err(x) if f(x))
606606
}

0 commit comments

Comments
 (0)