We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd17dea commit e724b3eCopy full SHA for e724b3e
library/core/src/ops/control_flow.rs
@@ -80,6 +80,7 @@ use crate::{convert, ops};
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
+#[must_use]
84
// ControlFlow should not implement PartialOrd or Ord, per RFC 3058:
85
// https://rust-lang.github.io/rfcs/3058-try-trait-v2.html#traits-for-controlflow
86
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
0 commit comments