From 7ba4accfbf6278a5ca960c7a1d280df898ebfdb2 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Sat, 20 Nov 2021 11:52:09 -0800 Subject: [PATCH] Stabilize `ControlFlow::{is_break, is_continue}` --- library/core/src/ops/control_flow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/ops/control_flow.rs b/library/core/src/ops/control_flow.rs index b0c15898a1fd8..c6fbeb85a3174 100644 --- a/library/core/src/ops/control_flow.rs +++ b/library/core/src/ops/control_flow.rs @@ -136,7 +136,7 @@ impl ControlFlow { /// assert!(!ControlFlow::::Continue(3).is_break()); /// ``` #[inline] - #[unstable(feature = "control_flow_enum", reason = "new API", issue = "75744")] + #[stable(feature = "control_flow_enum_is", since = "1.59.0")] pub fn is_break(&self) -> bool { matches!(*self, ControlFlow::Break(_)) } @@ -153,7 +153,7 @@ impl ControlFlow { /// assert!(ControlFlow::::Continue(3).is_continue()); /// ``` #[inline] - #[unstable(feature = "control_flow_enum", reason = "new API", issue = "75744")] + #[stable(feature = "control_flow_enum_is", since = "1.59.0")] pub fn is_continue(&self) -> bool { matches!(*self, ControlFlow::Continue(_)) }