From 897797fc552d53c5f82334e0087c7ab3a813b693 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Wed, 28 Aug 2024 17:58:18 -0700 Subject: [PATCH] Disable a broken assert in the rust parser (#7694) @aljazerzen, could you follow up on this? --- edb/edgeql-parser/src/parser.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/edb/edgeql-parser/src/parser.rs b/edb/edgeql-parser/src/parser.rs index 4dc21276d36..c233a219d40 100644 --- a/edb/edgeql-parser/src/parser.rs +++ b/edb/edgeql-parser/src/parser.rs @@ -398,13 +398,14 @@ impl<'s> Parser<'s> { } pub fn finish(&mut self) { - debug_assert!(matches!( - &self.stack_top.value, - CSTNode::Terminal(Terminal { - kind: Kind::EOI, - .. - }) - )); + // XXX: This assert was failing. Should it be fixed or removed? + // debug_assert!(matches!( + // &self.stack_top.value, + // CSTNode::Terminal(Terminal { + // kind: Kind::EOI, + // .. + // }) + // )); self.stack_top = self.stack_top.parent.unwrap(); // self.print_stack();