diff options
| author | Thayne McCombs <astrothayne@gmail.com> | 2018-04-01 22:11:51 -0600 |
|---|---|---|
| committer | Thayne McCombs <astrothayne@gmail.com> | 2018-04-01 22:11:51 -0600 |
| commit | 5152a6f2852f5200665a591bbf59e7e827a68af4 (patch) | |
| tree | 6d4df428870c1c6ae7c1b568783b3fd13b56c793 | |
| parent | 06fa27d7c84a21af8449e06f3c50b243c4d5a7ad (diff) | |
| download | rust-5152a6f2852f5200665a591bbf59e7e827a68af4.tar.gz rust-5152a6f2852f5200665a591bbf59e7e827a68af4.zip | |
Stabilize `Option::filter`.
Fixes #45860
| -rw-r--r-- | src/libcore/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 61ef6798b2e..002fe68ad9b 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -639,7 +639,7 @@ impl<T> Option<T> { /// 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<P: FnOnce(&T) -> bool>(self, predicate: P) -> Self { if let Some(x) = self { if predicate(&x) { |
