diff options
| author | Taiki Endo <te316e89@gmail.com> | 2019-02-04 22:41:39 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2019-02-04 22:41:39 +0900 |
| commit | 4847c097b46265963bbf9cd8006456b3ff31169b (patch) | |
| tree | 6a0a0866a8790de9b06b7dbb35014c531bf58ea7 /src/libcore/task | |
| parent | 8ae730a442cc8af6a487a137ae9ba78f89edbba6 (diff) | |
| download | rust-4847c097b46265963bbf9cd8006456b3ff31169b.tar.gz rust-4847c097b46265963bbf9cd8006456b3ff31169b.zip | |
Add #[must_use] to core::task::Poll
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/poll.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/task/poll.rs b/src/libcore/task/poll.rs index 27b1139e15c..ac656153519 100644 --- a/src/libcore/task/poll.rs +++ b/src/libcore/task/poll.rs @@ -7,6 +7,7 @@ use result::Result; /// Indicates whether a value is available or if the current task has been /// scheduled to receive a wakeup instead. +#[must_use = "this `Poll` may be a `Pending` variant, which should be handled"] #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] pub enum Poll<T> { /// Represents that a value is immediately ready. |
