We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::ops::ControlFlow
1 parent 276aa30 commit 83f12d4Copy full SHA for 83f12d4
core/src/ops/control_flow.rs
@@ -79,6 +79,7 @@ use crate::{convert, ops};
79
/// [`Break`]: ControlFlow::Break
80
/// [`Continue`]: ControlFlow::Continue
81
#[stable(feature = "control_flow_enum_type", since = "1.55.0")]
82
+#[cfg_attr(not(test), rustc_diagnostic_item = "ControlFlow")]
83
// ControlFlow should not implement PartialOrd or Ord, per RFC 3058:
84
// https://rust-lang.github.io/rfcs/3058-try-trait-v2.html#traits-for-controlflow
85
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
0 commit comments