1
Fork 0

Fix bad span for explicit lifetime suggestion

Move verbose logic to a function

Minor renaming
This commit is contained in:
Shoyu Vanilla 2024-02-25 21:46:11 +09:00
parent 1388d7a069
commit c270a42fea
11 changed files with 167 additions and 83 deletions

View file

@ -1305,7 +1305,7 @@ fn compare_number_of_generics<'tcx>(
.iter()
.filter(|p| match p.kind {
hir::GenericParamKind::Lifetime {
kind: hir::LifetimeParamKind::Elided,
kind: hir::LifetimeParamKind::Elided(_),
} => {
// A fn can have an arbitrary number of extra elided lifetimes for the
// same signature.