Skip to content

Commit 7dbf37b

Browse files
authored
Rollup merge of #60808 - Schultzer:improve-must-use-linit-for-future, r=Centril
Improve the "must use" lint for `Future` Fixes #60797
2 parents b24981a + 58c6a94 commit 7dbf37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/future/future.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::task::{Context, Poll};
2323
/// When using a future, you generally won't call `poll` directly, but instead
2424
/// `await!` the value.
2525
#[doc(spotlight)]
26-
#[must_use = "futures do nothing unless polled"]
26+
#[must_use = "futures do nothing unless you `.await` or poll them"]
2727
#[stable(feature = "futures_api", since = "1.36.0")]
2828
pub trait Future {
2929
/// The type of value produced on completion.

0 commit comments

Comments
 (0)