1
Fork 0

Closures are recursively reachable

This commit is contained in:
Tomasz Miąsko 2024-06-04 00:00:00 +00:00
parent 44701e070c
commit 5d26f58423
3 changed files with 9 additions and 0 deletions

View file

@ -157,6 +157,7 @@ impl<'tcx> ReachableContext<'tcx> {
}
hir::ImplItemKind::Type(_) => false,
},
Node::Expr(&hir::Expr { kind: hir::ExprKind::Closure(..), .. }) => true,
_ => false,
}
}