diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2021-11-20 11:52:09 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2021-11-20 11:52:09 -0800 |
| commit | 7ba4accfbf6278a5ca960c7a1d280df898ebfdb2 (patch) | |
| tree | 77d3bb47ae1ad5bc26994ef7665baa9711618599 | |
| parent | 93542a8240c5f926ac5f3f99cef99366082f9c2b (diff) | |
| download | rust-7ba4accfbf6278a5ca960c7a1d280df898ebfdb2.tar.gz rust-7ba4accfbf6278a5ca960c7a1d280df898ebfdb2.zip | |
Stabilize `ControlFlow::{is_break, is_continue}`
| -rw-r--r-- | library/core/src/ops/control_flow.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ops/control_flow.rs b/library/core/src/ops/control_flow.rs index b0c15898a1f..c6fbeb85a31 100644 --- a/library/core/src/ops/control_flow.rs +++ b/library/core/src/ops/control_flow.rs @@ -136,7 +136,7 @@ impl<B, C> ControlFlow<B, C> { /// assert!(!ControlFlow::<String, i32>::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<B, C> ControlFlow<B, C> { /// assert!(ControlFlow::<String, i32>::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(_)) } |
