aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2022-10-13 09:25:57 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:33 +0100
commitb1510ce0fc77d061235e30fed44e93c88c559a38 (patch)
tree9013512778232d4977ed3fe0f810cb5674596ef9
parent59bee4d4663e7e285a41540e9378cb0f9f312ee1 (diff)
downloadgcc-b1510ce0fc77d061235e30fed44e93c88c559a38.zip
gcc-b1510ce0fc77d061235e30fed44e93c88c559a38.tar.gz
gcc-b1510ce0fc77d061235e30fed44e93c88c559a38.tar.bz2
gccrs: ast: dump: fix extra newline in block without tail
gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Fix block formatting.
-rw-r--r--gcc/rust/ast/rust-ast-dump.cc4
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