about summary refs log tree commit diff
path: root/src/libcore/future
diff options
context:
space:
mode:
authorFelix Chapman <aelred717@gmail.com>2018-12-10 14:45:26 +0000
committerFelix Chapman <aelred717@gmail.com>2018-12-10 14:45:26 +0000
commitecc4ca54a4c7b1c436c466357877336c1df781cd (patch)
treefc1152a312945022c21650a4f8937d3c15ccc466 /src/libcore/future
parenta336228760389b5ef01390f1c90a029dc44a0dc1 (diff)
downloadrust-ecc4ca54a4c7b1c436c466357877336c1df781cd.tar.gz
rust-ecc4ca54a4c7b1c436c466357877336c1df781cd.zip
Add #[must_use] attribute to stdlib traits
Diffstat (limited to 'src/libcore/future')
-rw-r--r--src/libcore/future/future.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs
index 0c870f9e404..5dee1d6dd3a 100644
--- a/src/libcore/future/future.rs
+++ b/src/libcore/future/future.rs
@@ -33,6 +33,7 @@ use task::{Poll, LocalWaker};
 ///
 /// When using a future, you generally won't call `poll` directly, but instead
 /// `await!` the value.
+#[must_use]
 pub trait Future {
     /// The result of the `Future`.
     type Output;