diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-03-20 02:58:55 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-03-21 21:57:33 +0000 |
commit | b623cb99ac1c176ecb50e127f7f1ed13eb714316 (patch) | |
tree | fb1ec16eb85cafb68af31561f4772e45fae935df /gcc | |
parent | 43d1fc6c8f03e6578434d70c3da55a8910c821e0 (diff) | |
download | gcc-b623cb99ac1c176ecb50e127f7f1ed13eb714316.zip gcc-b623cb99ac1c176ecb50e127f7f1ed13eb714316.tar.gz gcc-b623cb99ac1c176ecb50e127f7f1ed13eb714316.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 3792f96..aab8f0e 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 |