Skip to content

Commit 5152a6f

Browse files
committed
Stabilize Option::filter.
Fixes rust-lang#45860
1 parent 06fa27d commit 5152a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl<T> Option<T> {
639639
/// assert_eq!(Some(4).filter(is_even), Some(4));
640640
/// ```
641641
#[inline]
642-
#[unstable(feature = "option_filter", issue = "45860")]
642+
#[stable(feature = "option_filter", since = "1.27.0")]
643643
pub fn filter<P: FnOnce(&T) -> bool>(self, predicate: P) -> Self {
644644
if let Some(x) = self {
645645
if predicate(&x) {

0 commit comments

Comments
 (0)