From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 1F1D03858D1E; Sat, 15 Oct 2022 09:15:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F1D03858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665825338; bh=T02LVdKPlu0Lp8v+GhTqdNUR+2aqG006J0rRXVKGXxU=; h=From:To:Subject:Date:From; b=vobEDLZKAcnnzVMSxTwi1MTY9fqj/1fF5t7Vhuuq7lYU3f8Jczc247Yjh6qlbu6ug EuRq1sKccFUvWOfmJeR98fELNBIvE7KFTbSyVuj4ehd62Op2C8j3fmY0+cmnSHJ/Hl 3Qiy5F6zmqOwHDpeP2M8n0FD1lqcK55IiPBFRUfs= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] ast: dump: fix extra newline in block without tail X-Act-Checkin: gcc X-Git-Author: David Faust X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 8cbcff46d34c998239dfa1792fe7459699658c62 X-Git-Newrev: a5a86282306eea70b7c89bd221b8e8f1afa77a2e Message-Id: <20221015091538.1F1D03858D1E@sourceware.org> Date: Sat, 15 Oct 2022 09:15:37 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a5a86282306eea70b7c89bd221b8e8f1afa77a2e commit a5a86282306eea70b7c89bd221b8e8f1afa77a2e Author: David Faust 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