Skip to content

Commit

Permalink
Disable a broken assert in the rust parser (#7694)
Browse files Browse the repository at this point in the history
@aljazerzen, could you follow up on this?
  • Loading branch information
msullivan authored Aug 29, 2024
1 parent 571af37 commit 897797f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions edb/edgeql-parser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 897797f

Please sign in to comment.