public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6178] gccrs: ast: dump: fix extra newline in block without tail
@ 2023-02-21 11:57 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2023-02-21 11:57 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b1510ce0fc77d061235e30fed44e93c88c559a38
commit r13-6178-gb1510ce0fc77d061235e30fed44e93c88c559a38
Author: David Faust <david.faust@oracle.com>
Date: Thu Oct 13 09:25:57 2022 -0700
gccrs: ast: dump: fix extra newline in block without tail
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Fix block formatting.
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-21 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 11:57 [gcc r13-6178] gccrs: ast: dump: fix extra newline in block without tail Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).