Stop visiting visibility.
This commit is contained in:
parent
64c5deb0e3
commit
10d10efb21
18 changed files with 29 additions and 95 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue