Skip to content

Commit 5f35a8c

Browse files
committed
parser: Add clear_errors() method
1 parent 9fb06d6 commit 5f35a8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/rust/parse/rust-parse.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ template <typename ManagedTokenSource> class Parser
603603
bool done_end_of_file ();
604604

605605
void add_error (Error error) { error_table.push_back (std::move (error)); }
606+
void clear_errors () { error_table.clear (); }
606607

607608
public:
608609
// Construct parser with specified "managed" token source.

0 commit comments

Comments
 (0)