From 58c6a94f00110a08725182a8519cedee16819c71 Mon Sep 17 00:00:00 2001 From: Benjamin Schultzer Date: Mon, 13 May 2019 15:13:17 -0700 Subject: [PATCH] Improve the "must use" lint for `Future` Co-Authored-By: Mazdak Farrokhzad --- src/libcore/future/future.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs index 504330a023b..3f76ac20192 100644 --- a/src/libcore/future/future.rs +++ b/src/libcore/future/future.rs @@ -23,7 +23,7 @@ /// When using a future, you generally won't call `poll` directly, but instead /// `await!` the value. #[doc(spotlight)] -#[must_use = "futures do nothing unless polled"] +#[must_use = "futures do nothing unless you `.await` or poll them"] #[stable(feature = "futures_api", since = "1.36.0")] pub trait Future { /// The type of value produced on completion. -- 2.44.0