about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-13 15:40:08 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-04-23 09:53:45 +0200
commit10d10efb2186bfea33a13830dc5bce967b12d049 (patch)
treeb238b4ea3e30e5231bc9f1b83dbf75ccd8e13419 /compiler/rustc_resolve/src
parent64c5deb0e3a22b93ed1fe5e2a7f2e8d91eea63b9 (diff)
downloadrust-10d10efb2186bfea33a13830dc5bce967b12d049.tar.gz
rust-10d10efb2186bfea33a13830dc5bce967b12d049.zip
Stop visiting visibility.
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/late/lifetimes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late/lifetimes.rs b/compiler/rustc_resolve/src/late/lifetimes.rs
index d5f2e2db1e3..ce3069265d0 100644
--- a/compiler/rustc_resolve/src/late/lifetimes.rs
+++ b/compiler/rustc_resolve/src/late/lifetimes.rs
@@ -685,8 +685,8 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
         hir_id: hir::HirId,
     ) {
         let name = match fk {
-            intravisit::FnKind::ItemFn(id, _, _, _) => id.name,
-            intravisit::FnKind::Method(id, _, _) => id.name,
+            intravisit::FnKind::ItemFn(id, _, _) => id.name,
+            intravisit::FnKind::Method(id, _) => id.name,
             intravisit::FnKind::Closure => sym::closure,
         };
         let name = name.as_str();