[gcc/devel/rust/master] ast: dump: fix extra newline in block without tail
Thomas Schwinge
tschwinge@gcc.gnu.org
Sat Oct 15 09:15:37 GMT 2022
https://gcc.gnu.org/g:a5a86282306eea70b7c89bd221b8e8f1afa77a2e
commit a5a86282306eea70b7c89bd221b8e8f1afa77a2e
Author: David Faust <david.faust@oracle.com>
Date: Thu Oct 13 09:25:57 2022 -0700
ast: dump: fix extra newline in block without tail
Diff:
---
gcc/rust/ast/rust-ast-dump.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index 7cbdfa21fcb..3b00c9fedb6 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
More information about the Gcc-cvs
mailing list