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
Unused lifetime type parameters #877
Comments
There's the |
No, apparently it doesn't. This … impl<'a> Bar {
fn foo<'b>() { }
} … only triggers one clippy warning. For
|
Ok, so this should be an extension to the |
I'll note that this behavior is currently pretty nice for writing macros that handle reference and non-reference types, because it saves you some contortions that come from the fact that there is no macro matcher for Of course, for clippy, that doesn't really matter since we'd exclude macro expansions anyway. |
This wasn't caught due to rust-lang/rust-clippy#877
The |
Is this a new addition to the rustc lint, that hasn't made it into the playground yet? Since it doesn't get linted on the Playground. |
@flip1995: you were missing the |
Ohhhhh, sorry 🤦♂️ Then this can be closed |
Leaving an unused type parameter …
… triggers the following error:
Leaving an unused lifetime parameter however …
does not.
We should lint these, shouldn't we? Or should I file a rustc bug report?
The text was updated successfully, but these errors were encountered: