Skip to content

Commit e724b3e

Browse files
Make ControlFlow must_use
1 parent fd17dea commit e724b3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/ops/control_flow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ use crate::{convert, ops};
8080
/// [`Continue`]: ControlFlow::Continue
8181
#[stable(feature = "control_flow_enum_type", since = "1.55.0")]
8282
#[cfg_attr(not(test), rustc_diagnostic_item = "ControlFlow")]
83+
#[must_use]
8384
// ControlFlow should not implement PartialOrd or Ord, per RFC 3058:
8485
// https://rust-lang.github.io/rfcs/3058-try-trait-v2.html#traits-for-controlflow
8586
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)