Fix bad span for explicit lifetime suggestion
Move verbose logic to a function Minor renaming
This commit is contained in:
parent
1388d7a069
commit
c270a42fea
11 changed files with 167 additions and 83 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue