@@ -545,8 +545,6 @@ impl<T, E> Result<T, E> {
545
545
/// # Examples
546
546
///
547
547
/// ```
548
- /// #![feature(is_some_and)]
549
- ///
550
548
/// let x: Result<u32, &str> = Ok(2);
551
549
/// assert_eq!(x.is_ok_and(|x| x > 1), true);
552
550
///
@@ -558,7 +556,7 @@ impl<T, E> Result<T, E> {
558
556
/// ```
559
557
#[ must_use]
560
558
#[ inline]
561
- #[ unstable ( feature = "is_some_and" , issue = "93050 " ) ]
559
+ #[ stable ( feature = "is_some_and" , since = "CURRENT_RUSTC_VERSION " ) ]
562
560
pub fn is_ok_and ( self , f : impl FnOnce ( T ) -> bool ) -> bool {
563
561
match self {
564
562
Err ( _) => false ,
@@ -590,7 +588,6 @@ impl<T, E> Result<T, E> {
590
588
/// # Examples
591
589
///
592
590
/// ```
593
- /// #![feature(is_some_and)]
594
591
/// use std::io::{Error, ErrorKind};
595
592
///
596
593
/// let x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, "!"));
@@ -604,7 +601,7 @@ impl<T, E> Result<T, E> {
604
601
/// ```
605
602
#[ must_use]
606
603
#[ inline]
607
- #[ unstable ( feature = "is_some_and" , issue = "93050 " ) ]
604
+ #[ stable ( feature = "is_some_and" , since = "CURRENT_RUSTC_VERSION " ) ]
608
605
pub fn is_err_and ( self , f : impl FnOnce ( E ) -> bool ) -> bool {
609
606
match self {
610
607
Ok ( _) => false ,
0 commit comments