File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ use task::{Poll, LocalWaker};
23
23
///
24
24
/// When using a future, you generally won't call `poll` directly, but instead
25
25
/// `await!` the value.
26
- #[ must_use]
26
+ #[ must_use = "futures do nothing unless polled" ]
27
27
pub trait Future {
28
28
/// The result of the `Future`.
29
29
type Output ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item=()>) {}
88
88
message="`{Self}` is not an iterator"
89
89
) ]
90
90
#[ doc( spotlight) ]
91
- #[ must_use]
91
+ #[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
92
92
pub trait Iterator {
93
93
/// The type of the elements being iterated over.
94
94
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments