Closures are recursively reachable
This commit is contained in:
@@ -157,6 +157,7 @@ impl<'tcx> ReachableContext<'tcx> {
|
||||
}
|
||||
hir::ImplItemKind::Type(_) => false,
|
||||
},
|
||||
Node::Expr(&hir::Expr { kind: hir::ExprKind::Closure(..), .. }) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user