diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-13 15:40:08 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-23 09:53:45 +0200 |
| commit | 10d10efb2186bfea33a13830dc5bce967b12d049 (patch) | |
| tree | b238b4ea3e30e5231bc9f1b83dbf75ccd8e13419 /compiler/rustc_resolve/src | |
| parent | 64c5deb0e3a22b93ed1fe5e2a7f2e8d91eea63b9 (diff) | |
| download | rust-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.rs | 4 |
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(); |
