-
Couldn't load subscription status.
- Fork 1.8k
Closed
Labels
A-lintArea: New lintsArea: New lints
Description
What it does
needless_lifetimes currently could support suggesting lifetime elison in impl<'a> T<'a> or impl<'a> Trait for T<'a> signatures.
Advantage
Adds extra verbosity which is not necessary. If we elide lifetimes everywhere else, why don't we suggest it here?
Drawbacks
Unsure if there is any.
Example
impl<'a> MyType<'a> {
// method definitions that don't reference 'a
}Could be written as:
impl MyType<'_> {
// method definitions that don't reference 'a
}Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lints