Skip to content

Commit 7ba4acc

Browse files
Stabilize ControlFlow::{is_break, is_continue}
1 parent 93542a8 commit 7ba4acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/ops/control_flow.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl<B, C> ControlFlow<B, C> {
136136
/// assert!(!ControlFlow::<String, i32>::Continue(3).is_break());
137137
/// ```
138138
#[inline]
139-
#[unstable(feature = "control_flow_enum", reason = "new API", issue = "75744")]
139+
#[stable(feature = "control_flow_enum_is", since = "1.59.0")]
140140
pub fn is_break(&self) -> bool {
141141
matches!(*self, ControlFlow::Break(_))
142142
}
@@ -153,7 +153,7 @@ impl<B, C> ControlFlow<B, C> {
153153
/// assert!(ControlFlow::<String, i32>::Continue(3).is_continue());
154154
/// ```
155155
#[inline]
156-
#[unstable(feature = "control_flow_enum", reason = "new API", issue = "75744")]
156+
#[stable(feature = "control_flow_enum_is", since = "1.59.0")]
157157
pub fn is_continue(&self) -> bool {
158158
matches!(*self, ControlFlow::Continue(_))
159159
}

0 commit comments

Comments
 (0)