about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis
diff options
context:
space:
mode:
authorShoyu Vanilla <modulo641@gmail.com>2024-02-25 21:46:11 +0900
committerShoyu Vanilla <modulo641@gmail.com>2024-03-21 10:31:04 +0900
commitc270a42fea7ac5897756a55a4797e06244cf947b (patch)
tree692c5086d5bc569b8845f0ebd14037a34b64e0a0 /compiler/rustc_hir_analysis
parent1388d7a069d872bcfe5e5dd97ef61fa0a586fac0 (diff)
downloadrust-c270a42fea7ac5897756a55a4797e06244cf947b.tar.gz
rust-c270a42fea7ac5897756a55a4797e06244cf947b.zip
Fix bad span for explicit lifetime suggestion
Move verbose logic to a function

Minor renaming
Diffstat (limited to 'compiler/rustc_hir_analysis')
-rw-r--r--compiler/rustc_hir_analysis/src/check/compare_impl_item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs b/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs
index ec9e928ce59..d2fdff6177e 100644
--- a/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs
+++ b/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs
@@ -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.