Commit b5a4fa1
committed
Auto merge of rust-lang#10222 - Alexendoo:needless-lifetime-suggestion, r=flip1995
Add machine applicable suggestion for `needless_lifetimes`
changelog: [`needless_lifetimes`]: Add machine applicable suggestion
Fixes rust-lang#9360
It doesn't make suggestions for async functions as the input lifetime spans are funky there
The examples in rust-lang#5787 and rust-lang#7271 no longer seem to FP this PR aside, I added tests for them rather than disabling the lint entirely for async functions, I don't know if there are further FPs there though
Closes rust-lang#5787
Closes rust-lang#7271File tree
6 files changed
+1019
-182
lines changed- clippy_lints/src
- tests/ui
- crashes
6 files changed
+1019
-182
lines changed
0 commit comments