public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] ast: dump: fix extra newline in block without tail
@ 2022-10-15 9:15 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-15 9:15 UTC (permalink / raw)
To: gcc-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-15 9:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-15 9:15 [gcc/devel/rust/master] ast: dump: fix extra newline in block without tail Thomas Schwinge
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).