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};
2323///
2424/// When using a future, you generally won't call `poll` directly, but instead
2525/// `await!` the value.
26- #[ must_use]
26+ #[ must_use = "futures do nothing unless polled" ]
2727pub trait Future {
2828 /// The result of the `Future`.
2929 type Output ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item=()>) {}
8888 message="`{Self}` is not an iterator"
8989) ]
9090#[ doc( spotlight) ]
91- #[ must_use]
91+ #[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
9292pub trait Iterator {
9393 /// The type of the elements being iterated over.
9494 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments