From patchwork Tue Feb 21 12:01:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 59977 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1828884wrn; Tue, 21 Feb 2023 04:17:24 -0800 (PST) X-Google-Smtp-Source: AK7set/SnssuaNvVjIVOrdo11eMu6YeRvCRDBol/E4quTIoW852Szr5tV8EO0FxDGadNl/dIXapf X-Received: by 2002:a17:906:aac6:b0:8b2:fa6d:45d5 with SMTP id kt6-20020a170906aac600b008b2fa6d45d5mr14699256ejb.71.1676981844596; Tue, 21 Feb 2023 04:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676981844; cv=none; d=google.com; s=arc-20160816; b=ExNM9sJGy6bvZcuRAS/X13GsXrPplITcS8KF8BhmCYqENgMNT3y1UTo2PNrtND5nrA okgEqz6XMIzZyBnsib2wRidpxLj8EX5asy3/hhAtdSYVmaa58U6dl9Mx7j65Q5iyAmQZ v714QoENewpJo40SpHP2ZPKcDM8LamQSXUMdUis567Cs3YOV3ooyesiorTcnqqk6V9el 6NvbJjzHn2dwQ/nNyKHcx0bPyohtTfneJRlNNnSn047WNTNW8QHakIJtgzek2aFIIBKf VhYjdEBLfYaF/IR4zpa12Wl4jJnHO1/4kJEEs3HUbESUijPXgmTIYsDYaFV/KCarDbOR hB7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=2Wf5brmIn2Hriw2LNJ4HRFXIl5pkjH3B9BtsPEVbJ4Y=; b=XxsKLXzJTjWEhicU2GCdd4ZBnPpTgM7asj3352XcVhe0jU2VX+eSBKle2itB5eqfg+ pZ+J5Y0lsDqQPQMENEMqAb88OBDbdV/3IM56h79NftEiDUXDIhCJEw6hubNlUo0p6k/h UP4ul9asvJIdn9C2C4VQhdNvDt3zuIRRTfJXNy65VBuIDaoMM1sCa9DpBJUYpq2wbD8d ltrtTyvtX/r2V9r4FfMTZbP5bYzvBZC1qOsBEdVGMT8y17jMJIBS7pHwRaM91ANm2Ovk 5NrdqvpZDTgfhqlhwM8U5cYecOyPQN7Bf3bgbYslZ9HlcnDg9BncloVbp652rCx09KEp msYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=KAGWwTc0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fb7-20020a1709073a0700b008cd04d9ea72si8644172ejc.847.2023.02.21.04.17.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:17:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=KAGWwTc0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 09F893AA8CBB for ; Tue, 21 Feb 2023 12:08:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 73A1C383FE0E for ; Tue, 21 Feb 2023 12:03:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73A1C383FE0E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x433.google.com with SMTP id p8so4289980wrt.12 for ; Tue, 21 Feb 2023 04:03:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=2Wf5brmIn2Hriw2LNJ4HRFXIl5pkjH3B9BtsPEVbJ4Y=; b=KAGWwTc0T+Qj7CKivYuS8WASp/hZuB2aqKSnLn7fI9YwU6zKtbsr1pWXpd52OVZvWP YcYomugRKtfMvywdEslTeBBOzyAwzu9kPmUiakEs97Bgt1Zx1LdHOSB/LudkZzvevi/i VW4Y8HTcS0ufUiYgPWxTIbv77z4XGf76zpVJtwvYTdIGQxLGkzvkwIwXTIDGiLOPcsQO h7g2TKol3r1/RyndlVSfNq0oZvD15bM3zSpnrbqSOb+02ITIzw3+Hb3hVrRyCvFTAAPC NgLMWrhVVx/0by9sdCE930k7q7JTsu7eUgs8zOc9AzDvTwkfbUn9nIkM4saIjQyVQpM7 9brg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2Wf5brmIn2Hriw2LNJ4HRFXIl5pkjH3B9BtsPEVbJ4Y=; b=MzxW82/n5Lpk8r2Qoy3ZV0ZLHZoQ4YF0k9hb9E66ayIh6imZIO1uI/vzu8lJraPyHP P5DIIUpkpR0/6at0n+yPEwDqj31L6Dgm7YuPC06J13jWe8YLOWzoYjHCKBQJRd8JF4g2 zlBn03RnUebQQ1bjcLs5UQVONtkOkUn3yhwLABn0CiLbWs8lKVjZrD6ioIT8wDaiBNYG GexqIIStbuzZ76HKP7VkQql9oTwohV7lQbrB9vBdcAi2vGiAvI7GxFsiwXQkqkc9waEM ZUhqySF1HivhIGvONq4zEivpkyHt02dVnjOaNFrOWW3hrD8SyF3NYnCAlM6Zsip6S9+D /iGA== X-Gm-Message-State: AO0yUKXS9AT8BhbukCFeS5VCF+Eq/uugYziuhHMwMX4hdB3c0ZuoSb8m Gdw++b1GNVQhOmVRl18vVoDmCNSf8n8E/WPrnw== X-Received: by 2002:adf:e445:0:b0:2c5:48ed:d258 with SMTP id t5-20020adfe445000000b002c548edd258mr3820798wrm.35.1676981023855; Tue, 21 Feb 2023 04:03:43 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:43 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, David Faust Subject: [committed 025/103] gccrs: ast: dump: fix extra newline in block without tail Date: Tue, 21 Feb 2023 13:01:15 +0100 Message-Id: <20230221120230.596966-26-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221120230.596966-1-arthur.cohen@embecosm.com> References: <20230221120230.596966-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758442914768358357?= X-GMAIL-MSGID: =?utf-8?q?1758442914768358357?= From: David Faust 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 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