From: Benjamin Schultzer Date: Mon, 13 May 2019 22:13:17 +0000 (-0700) Subject: Improve the "must use" lint for `Future` X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;ds=sidebyside;h=58c6a94f00110a08725182a8519cedee16819c71;p=rust.git Improve the "must use" lint for `Future` Co-Authored-By: Mazdak Farrokhzad --- 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.