diff options
author | David Faust <david.faust@oracle.com> | 2022-10-13 09:25:57 -0700 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2022-10-13 13:31:40 -0700 |
commit | a5a86282306eea70b7c89bd221b8e8f1afa77a2e (patch) | |
tree | 3d462d5c4867c06b2cb7796c41eaf053dcfed2c6 /gcc | |
parent | 8cbcff46d34c998239dfa1792fe7459699658c62 (diff) | |
download | gcc-a5a86282306eea70b7c89bd221b8e8f1afa77a2e.zip gcc-a5a86282306eea70b7c89bd221b8e8f1afa77a2e.tar.gz gcc-a5a86282306eea70b7c89bd221b8e8f1afa77a2e.tar.bz2 |
ast: dump: fix extra newline in block without tail
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 7cbdfa2..3b00c9f 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -498,11 +498,11 @@ Dump::visit (BlockExpr &expr) { stream << indentation; expr.get_tail_expr ()->accept_vis (*this); - stream << " /* tail expr */"; + stream << " /* tail expr */\n"; } indentation.decrement (); - stream << "\n" << indentation << "}\n"; + stream << indentation << "}\n"; } void |