I've been working on a new lint. It's been merged and is available in beta. We then got a bunch of people who don't worship me had comments on the phrasing of the lint, so it's being reworded. Against my better judgement, I figured I'd ask for feedback from y'all as well!
This is the complete test for the lint, but a single common example is:
error: hiding a lifetime that's elided elsewhere is confusing
--> $DIR/mismatched-lifetime-syntaxes.rs:46:37
|
LL | fn implicit_ref_to_implicit_path(v: &u8) -> ContainsLifetime {
| ^^^ ---------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: remove the lifetime name from references and use `'_` for paths
|
LL | fn implicit_ref_to_implicit_path(v: &u8) -> ContainsLifetime<'_> {
| ++++