-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New lint: let _ binding of must use function #4812
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
Comments
I would like to tackle this. |
Great, go ahead. Tell us if you need anything. |
Should we not lint |
No, |
I just realized I assumed a bunch of things. 1. This issue does not talk about |
Exactly. The lint checks This will catch, among other things, If we want, we could extend the lint to also cover functions/methods directly marked as |
Add `let_underscore_must_use` lint changelog: closes #4812 , added a new `let_underscore_must_use` lint, moved `is_must_use_ty` to utils, added `is_must_use_fn` util function
Extracted from #4655
A lint that detects
let _
bindings of functions, that aremust_use
:On how to detect must use #4655 (comment):
Originally posted by @flip1995 in #4655 (comment)
The text was updated successfully, but these errors were encountered: