From 9d6fd110c803b545037e0f148d189e6609884399 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Mon, 20 Mar 2023 02:58:55 +0100 Subject: gccrs: ast: Dump each MacroRule properly without the extra semicolon Having the extra semicolon causes parsing errors when importing macros exported using the AST dump, as no rule expects multiple tokens after a single macro rule definition. gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Remove extraneous semicolon when dumping macro rules. --- gcc/rust/ast/rust-ast-dump.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 23ce376e..2335ffd 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1532,7 +1532,6 @@ Dump::visit (MacroRule &rule) visit (rule.get_matcher ()); stream << " => "; visit (rule.get_transcriber ().get_token_tree ()); - stream << ";"; } void -- cgit v1.1