diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r-- | gcc/rust/parse/rust-parse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h index 945bce7..fcfcf18 100644 --- a/gcc/rust/parse/rust-parse.h +++ b/gcc/rust/parse/rust-parse.h @@ -40,6 +40,11 @@ struct ExprOrStmt // statement constructor ExprOrStmt (std::unique_ptr<AST::Stmt> stmt) : stmt (std::move (stmt)) {} + // macro constructor + ExprOrStmt (std::unique_ptr<AST::MacroInvocation> macro) + : expr (std::move (macro)) + {} + // Returns whether this object is in an error state. bool is_error () const { |