-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve the "must use" lint for Future
to suggest await
#60797
Comments
The current note originates from: rust/src/libcore/future/future.rs Line 26 in a9ec99f
To change it, simply edit that. |
What about |
In any case, I would actually expect something in the line of:
Btw, I'd love to work on this issue and provide a PR. I'm really looking forward to help Rust just as much as it has helped me thus far! |
We may want to work in the fact that you can use |
@Centril what trait does provide |
@aesedepece I think for now |
That makes sense to me!
Am I ok to work on this?
… |
…r-future, r=Centril Improve the "must use" lint for `Future` Fixes rust-lang#60797
The following code gives a "must use" warning (which is awesome!), but the warning is not as clear as it could be:
This results in:
it should probably say "futures do nothing unless you await them" or something. Most people won't know what 'polled' is all about, I think.
The text was updated successfully, but these errors were encountered: