We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae730a commit 4847c09Copy full SHA for 4847c09
src/libcore/task/poll.rs
@@ -7,6 +7,7 @@ use result::Result;
7
8
/// Indicates whether a value is available or if the current task has been
9
/// scheduled to receive a wakeup instead.
10
+#[must_use = "this `Poll` may be a `Pending` variant, which should be handled"]
11
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
12
pub enum Poll<T> {
13
/// Represents that a value is immediately ready.
0 commit comments