Closed nicopap closed 1 year ago
The issue is with the ?
operator. In the parser, if there is any error, we abort all parsing. The issue is that:
This means in case of parse error, we do not initialize the header (which is fine, since we will never read it). But our drop
-based trick doesn't know we don't read the AST in case of errors, it just knows the header was not initialized and panics.
The following causes a panic when parsing as a
.chirp
file:error message: