From patchwork Tue Feb 21 12:02:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 60059 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1845979wrn; Tue, 21 Feb 2023 04:58:08 -0800 (PST) X-Google-Smtp-Source: AK7set+FV7yGbmyqCN7zvdcc7AcvYnOUduo+dcvb55RXCdWSSno0MVoMmWUIQbepmqqdg11ZQlLy X-Received: by 2002:a17:907:2083:b0:8c7:f906:7fa8 with SMTP id pv3-20020a170907208300b008c7f9067fa8mr9276336ejb.38.1676984287954; Tue, 21 Feb 2023 04:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676984287; cv=none; d=google.com; s=arc-20160816; b=NQiNQ/VhY+02vLRp1ivyJ0CuLWiz+HKDKQSCDw6fN6mfnXHrlUjZfOkp53XCwWCz86 rDAyaSxpkB/WLE1h6C7XNj7TDA7zoh+aOcZpXYxXw6r12hBhzLAbHhbLMBQ34XTrD9KL fPrX5FpYUWrvPTmbVWFm2aa+JuMHK/ES51gVTC8VFU/FMl3+2wPMDQYYj/aULhpbgQGy 9VaJ5qLeftLce8VUNJQwBT0kZTK69ZOc2bWDY8OmWr3ubI6jcGkYuFxQWe/1PD9MnSjj /jW2A/vhGNITGg1WbkY+gCE7pUQcfSnQcok5N97WwUu2x4dK3SvOt7iT9UrsFUvbVGMD 5jdQ== 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=uNF69TeQfZwK3+gJXrdNYVOhitZxnMt9bvlsdADDK9Q=; b=EA3IcAy1dRrIHthERQIm+RIUa1y+Zp+LQXEK7i1wcLgj5eSd/pFy7GE2ybbZqDaHQl YQkGrsBybvIvTSsGq2eB7Iqfh+qbNoyUCj7SyXFtNNWegbJ4I6hiTvPw13sKNkoC0mkn jGw2nmRjEZfvn7tv8WxvEDplAMvDMbXRr4mDG69HVZ2jMCbBDgrwHn9qzdUrAG7CZxsR e8vjk0nE3Nra/uvag86OYfYuIaWENzmxKFy3ag6nKQKGo3vDJsl4t2O9FW9slQMnj2KA 0t+U6ppg2SDDPiA75ICjIhy+iM1qptDhng2155F51aXtI63S6BSQaBBbT6Q3bFLQ1Gx/ dWkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=VEZ5M+Qi; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ay6-20020a170907900600b008cab1ae71e4si7977175ejc.818.2023.02.21.04.58.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:58:07 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=VEZ5M+Qi; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 EDAD73844741 for ; Tue, 21 Feb 2023 12:20:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 30A5138560A6 for ; Tue, 21 Feb 2023 12:04:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30A5138560A6 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-x432.google.com with SMTP id bo30so3604485wrb.0 for ; Tue, 21 Feb 2023 04:04:35 -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=uNF69TeQfZwK3+gJXrdNYVOhitZxnMt9bvlsdADDK9Q=; b=VEZ5M+Qig76cDY8TwLg3hLTrk1d4/9xzCPjZtxcl0Wxq1q1woAKRw1LVvXfaaqhb+q 5RkUgu6BO9bJ0V4rY6qnvtBaKG/k6jvooDGzuXy7TWgQJiKYG3K4DoIudb1t+KCMG+gF 1eR8rxaEZcVYgnAbT8VRaH/yYt2ivCsHruQl5TtRQ3ofeU32sLevZvJAUethogn9F2a1 ZV2ewyiEnYWXW+M8EdChHnw1MGgX7IsyIuQQsEWYJHuJKov5WMjzpzrBfIbIBZmT4dht HdfxgEoCEzaTS2CkUdzbHJONMaO6gWYrVuBFANPhKokCeNGkyf1iSx+mEnidF+cLVgxS sKgw== 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=uNF69TeQfZwK3+gJXrdNYVOhitZxnMt9bvlsdADDK9Q=; b=8N++Mu7o46wwEWYWNypJpSChYX7CpSiFI2uTQ1zDWxwpMUGMQJxjBKdcjq9swxb+TE knIGqCnTMxJ0wXgkEQYNR9mpoD3BTCOwKwP0p91QOgS1uxV0GN3+M6M9kP4RnxvSxEN9 kt3hQymkN8vgwvNYckNLQXBNWfEWGwnS5PeFfNBFAgS4YWXKI3G2TA4+UOYpZQplcV8Y cnZLJtEdFU3luhp7gyfj/yDGDmEe0W2LR4+zXcgsDhqQaAmzRKxDyy2VV90GyUEZ7NFg x45YNuUePud9g5CQ6R42THKg0D9azpKRnHC36gzwjnHpa1JKGY5lUfxENJZqfHPMWyBt xSdA== X-Gm-Message-State: AO0yUKWk/Eb9jsnfD2O0VaH2I1tFjy3IPuUCFY55WmUbBPAFuufG7ENW zs6FXliBaGETgjzxlb/OmCuUpq1Rr3e2ukuEiw== X-Received: by 2002:a5d:5912:0:b0:2c5:58aa:35cb with SMTP id v18-20020a5d5912000000b002c558aa35cbmr4409639wrd.47.1676981074607; Tue, 21 Feb 2023 04:04:34 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:34 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak Subject: [committed 089/103] gccrs: ast: Dump remove /* stmp */ comment to not clutter the dump Date: Tue, 21 Feb 2023 13:02:19 +0100 Message-Id: <20230221120230.596966-90-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.7 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=ham 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?1758445476533379174?= X-GMAIL-MSGID: =?utf-8?q?1758445476533379174?= From: Jakub Dupak gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Remove extraneous string when dumping statements. Signed-off-by: Jakub Dupak --- gcc/rust/ast/rust-ast-dump.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 477805f19f3..9ec847c4f88 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -848,7 +848,7 @@ Dump::visit (BlockExpr &expr) stream << "{\n"; indentation.increment (); - visit_items_as_lines (expr.get_statements (), "; /* stmt */"); + visit_items_as_lines (expr.get_statements (), ";"); if (expr.has_tail_expr ()) visit_as_line (expr.get_tail_expr (), " /* tail expr */\n"); @@ -1205,7 +1205,6 @@ Dump::visit (TypeAlias &type_alias) visit (type_alias.get_where_clause ()); stream << " = "; visit (type_alias.get_type_aliased ()); - stream << ";\n"; } void