Commit da1ca94
committed
Rewrite
* Input to output inference on `dyn Trait` lifetimes is handled with a sufficient MSRV.
* Elision on `dyn Trait` input lifetimes where the lifetime is used only once is suggested on all versions.
* Lifetimes that are only used as a constraint on a single type are no longer detected. This is a regression.
* A bunch of cases where the lints where prevented, but only a single lifetime was non-elidible now lint on remaining lifetimes.lifetimes lint pass. This mainly reduces the amount of work done when no lint is produced, but has a few behavior changes.1 parent 67b44b1 commit da1ca94
File tree
20 files changed
+1177
-850
lines changed- clippy_lints/src
- clippy_utils/src
- tests/ui
- crashes
20 files changed
+1177
-850
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments