Skip to content

Commit

Permalink
Rollup merge of rust-lang#60808 - Schultzer:improve-must-use-linit-fo…
Browse files Browse the repository at this point in the history
…r-future, r=Centril

Improve the "must use" lint for `Future`

Fixes rust-lang#60797
  • Loading branch information
Centril committed May 14, 2019
2 parents b24981a + 58c6a94 commit 7dbf37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/future/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::task::{Context, Poll};
/// 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.
Expand Down

0 comments on commit 7dbf37b

Please sign in to comment.