We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9704e2d + 9858d49 commit db3abecCopy full SHA for db3abec
core/src/option.rs
@@ -656,8 +656,6 @@ impl<T> Option<T> {
656
/// # Examples
657
///
658
/// ```
659
- /// #![feature(is_none_or)]
660
- ///
661
/// let x: Option<u32> = Some(2);
662
/// assert_eq!(x.is_none_or(|x| x > 1), true);
663
@@ -669,7 +667,7 @@ impl<T> Option<T> {
669
667
670
668
#[must_use]
671
#[inline]
672
- #[unstable(feature = "is_none_or", issue = "126383")]
+ #[stable(feature = "is_none_or", since = "CURRENT_RUSTC_VERSION")]
673
pub fn is_none_or(self, f: impl FnOnce(T) -> bool) -> bool {
674
match self {
675
None => true,
0 commit comments