Closures are recursively reachable
This commit is contained in:
parent
44701e070c
commit
5d26f58423
3 changed files with 9 additions and 0 deletions
|
@ -157,6 +157,7 @@ impl<'tcx> ReachableContext<'tcx> {
|
|||
}
|
||||
hir::ImplItemKind::Type(_) => false,
|
||||
},
|
||||
Node::Expr(&hir::Expr { kind: hir::ExprKind::Closure(..), .. }) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue