From b1510ce0fc77d061235e30fed44e93c88c559a38 Mon Sep 17 00:00:00 2001 From: David Faust Date: Thu, 13 Oct 2022 09:25:57 -0700 Subject: [PATCH] gccrs: ast: dump: fix extra newline in block without tail gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Fix block formatting. --- 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 7cbdfa21fcbc..3b00c9fedb68 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 -- 2.47.2