This commit is contained in:
Jakub Doka 2024-10-24 15:49:41 +02:00
parent 026f6141e6
commit aefa7e6405
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -4282,13 +4282,15 @@ fn push_up(nodes: &mut Nodes) {
nodes
.iter()
.map(|(n, _)| n)
.filter(|&n| !nodes.visited.get(n) && !matches!(nodes[n].kind, Kind::Arg | Kind::Mem))
.filter(|&n| !nodes.visited.get(n)
&& !matches!(nodes[n].kind, Kind::Arg | Kind::Mem | Kind::End))
.collect::<Vec<_>>(),
vec![],
"{:?}",
nodes
.iter()
.filter(|&(n, nod)| !nodes.visited.get(n) && !matches!(nod.kind, Kind::Arg | Kind::Mem))
.filter(|&(n, nod)| !nodes.visited.get(n)
&& !matches!(nod.kind, Kind::Arg | Kind::Mem | Kind::End))
.collect::<Vec<_>>()
);
}