| @@ -656,8 +656,6 @@ impl Option { |
|
|
| 656 |
656 |
/// # Examples |
| 657 |
657 |
/// |
| 658 |
658 |
/// ``` |
| 659 |
|
- /// #![feature(is_none_or)] |
| 660 |
|
- /// |
| 661 |
659 |
/// let x: Option = Some(2); |
| 662 |
660 |
/// assert_eq!(x.is_none_or(|x |
| 663 |
661 |
/// |
| @@ -669,7 +667,7 @@ impl Option { |
|
|
| 669 |
667 |
/// ``` |
| 670 |
668 |
#[must_use] |
| 671 |
669 |
#[inline] |
| 672 |
|
-#[unstable(feature = "is_none_or", issue = "126383")] |
|
670 |
+#[stable(feature = "is_none_or", since = "CURRENT_RUSTC_VERSION")] |
| 673 |
671 |
pub fn is_none_or(self, f: impl FnOnce(T) -> bool) -> bool { |
| 674 |
672 |
match self { |
| 675 |
673 |
None => true, |