Skip to content

Commit 4847c09

Browse files
committed
Add #[must_use] to core::task::Poll
1 parent 8ae730a commit 4847c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/task/poll.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use result::Result;
77

88
/// Indicates whether a value is available or if the current task has been
99
/// scheduled to receive a wakeup instead.
10+
#[must_use = "this `Poll` may be a `Pending` variant, which should be handled"]
1011
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
1112
pub enum Poll<T> {
1213
/// Represents that a value is immediately ready.

0 commit comments

Comments
 (0)