From 5152a6f2852f5200665a591bbf59e7e827a68af4 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Sun, 1 Apr 2018 22:11:51 -0600 Subject: [PATCH] Stabilize `Option::filter`. Fixes #45860 --- src/libcore/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 61ef6798b2ef..002fe68ad9b4 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -639,7 +639,7 @@ impl Option { /// assert_eq!(Some(4).filter(is_even), Some(4)); /// ``` #[inline] - #[unstable(feature = "option_filter", issue = "45860")] + #[stable(feature = "option_filter", since = "1.27.0")] pub fn filter bool>(self, predicate: P) -> Self { if let Some(x) = self { if predicate(&x) {