From aefa7e6405e8d6d73816fb438b346b8debfcbe8a Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Thu, 24 Oct 2024 15:49:41 +0200 Subject: [PATCH] forgot --- lang/src/son.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index b7ed8ab..86ca429 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -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![], "{:?}", 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::>() ); }