diff options
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.cc')
-rw-r--r-- | gcc/rust/expand/rust-macro-expand.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.cc b/gcc/rust/expand/rust-macro-expand.cc index eef9194..dd8d468 100644 --- a/gcc/rust/expand/rust-macro-expand.cc +++ b/gcc/rust/expand/rust-macro-expand.cc @@ -864,7 +864,9 @@ transcribe_expression (Parser<MacroInvocLexer> &parser) static AST::ASTFragment transcribe_type (Parser<MacroInvocLexer> &parser) { - auto type = parser.parse_type (); + auto type = parser.parse_type (true); + for (auto err : parser.get_errors ()) + err.emit_error (); return AST::ASTFragment ({std::move (type)}); } |