Message ID | 20230221120230.596966-8-arthur.cohen@embecosm.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1826557wrn; Tue, 21 Feb 2023 04:11:57 -0800 (PST) X-Google-Smtp-Source: AK7set9tcOO8+Jmik2oKSwHXXFweQIs9GzWjJuDT5Jq1cIvbUPugdgsP2Nz5C4O7UMK9HxJQjQQk X-Received: by 2002:aa7:d752:0:b0:4ac:c29d:5c4a with SMTP id a18-20020aa7d752000000b004acc29d5c4amr4112829eds.29.1676981517234; Tue, 21 Feb 2023 04:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676981517; cv=none; d=google.com; s=arc-20160816; b=GhBvoixxef5AQqxMoZStbCM4hVqi+Y6a1ouqA05nFqwFXbb1AKrz0G93T+PR8pLrV6 0Azzbu/3jUp/ACLz/KW0dqeMjOlg6nqmRzBTcz34gODjSdzVADkIVF9Lf51lfMzBg0XP rkie5xpEVcoBjI9ZViRb3bWmDGBs/h5KZcxfo4g4RxxuVReuEqcdwIZlm5W6JABSld+w +f4u6pYMQNV3Uzc7/BxSdOVq49R36q6Es/gXGtqXoWAQpqGChNZsyOTrYxbb9J+PRV0Z 3xJML0GFbMCYq5UDmTuLsU+64yPfbhS7yLWlgtNC/sIOriyExNdjBKQPOeb2etHN4k3E YgMw== 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=beoTZAkXMpWXV11eIpUnCzAF3XRmMfF23Y+q6Nr5MCg=; b=qHGPTbPRPZC7VY+cfFZ+nVoxX25SWCusv8rQ6Ia6IFgYESrySRZCcSER5GWibc91j6 ZFm3Nq8TXhZar48ngOYe6dO88ZsMjntl9y3G4PPNaolljpZhRHXCmgEnJaix8L0hikFe 2oUKKdk+lSmSY2bDgO9Lg0VkNySrgSXUIYzgoGK38UJP9XGY1p6a7huKqdVTTWYbLZur lHFWJX/8zUKHKsJOvm/YABG1D/8iVAu45OPimxWowT6TxY+B9t7G4doqjvncDi1C4RXu hubfXsLSg/zsg8avSgEtx+wMvzo/y0m4ZVW2e8YrhETgg4RsgbcxQFOwxN6DJvKkCP7e G9gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=gdOM+D8S; 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 j8-20020a50ed08000000b0048e82d753a3si814592eds.227.2023.02.21.04.11.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:11:57 -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=gdOM+D8S; 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 6F1FA3952512 for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:06:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id C62C33857438 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:03:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C62C33857438 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-x42c.google.com with SMTP id r7so3990029wrz.6 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:03:30 -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=beoTZAkXMpWXV11eIpUnCzAF3XRmMfF23Y+q6Nr5MCg=; b=gdOM+D8Shd7I2ocsMxfamtvhte2Y9m63OqB8Q+uNSVVwF3Js+apmcpTerVw6LrdPAc Cr7WW93AmHWSdj6y0MHIANbmTht8y2E/UbJlnD4VIsHZC4WWh2ZL05/q5VzZQR9zeea0 RD6DXFSFs4X9pNk0Ic11EChVctHXbywYfh91wemCSZ46uvdLYPBZ5+1wJhPrOcgKgMWY /d1HgXe/fjppW/2o+Fk/aILhAXpRou+YYmUQS7ngsiYFSJlG4Aj74YCZXOwOqXOlM9r7 8iZytv/MasVKwxqKa8lJA59dRMQ1P3FIbDefOKNfXnqNq8Ezo8vmr199bRV+ma+frDzs x65w== 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=beoTZAkXMpWXV11eIpUnCzAF3XRmMfF23Y+q6Nr5MCg=; b=M/9AbAQr4mU3fa/V+wOWEyuFwuFDyRgbdjmyqQ1MJFqKBgXU7PQ3odtj+uFvon3jGH ktHu5taUYJo/ZfkCSDqsVVLatnIHfTELIgfzBntgyyxXCrrAF+WnRBvkQQCZwCN06++f hL5in5XVju0QlGy3O/Cdfkj28ih9b3YUQYsl7ZNy6Yqsh/Lnydpz84UGBWlRzWEqZtAF G46PXJrCyE+CDIlwcXFEEgNEXT27FlapfTANbAlYdms3cbxIQHo+2/BFMBQM0Ji2SqBj 2XjW4/NpRtYxXD9acoqhqvJst1MPAxBmmLVouTKZe7qyfugDtO+CDn28zhs69iZHaMs9 v+4A== X-Gm-Message-State: AO0yUKWbflSt+unWRwUG6tQ3E1SMxT6cbSkZJ6Fr/dYYj3FJ2CWymffH fwH5SJsnAm7XFnq7l7vpuPc4V16R5KF81J0dhQ== X-Received: by 2002:a5d:414f:0:b0:2c5:455b:4e8a with SMTP id c15-20020a5d414f000000b002c5455b4e8amr4545089wrq.50.1676981010040; Tue, 21 Feb 2023 04:03:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:29 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, David Faust <david.faust@oracle.com> Subject: [committed 007/103] gccrs: ast: dump If expressions Date: Tue, 21 Feb 2023 13:00:57 +0100 Message-Id: <20230221120230.596966-8-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.9 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758442571373041508?= X-GMAIL-MSGID: =?utf-8?q?1758442571373041508?= |
Series |
[committed,001/103] gccrs: Fix missing dead code analysis ICE on local enum definition
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Arthur Cohen
Feb. 21, 2023, noon UTC
From: David Faust <david.faust@oracle.com>
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Implement visitor for If
expressions.
---
gcc/rust/ast/rust-ast-dump.cc | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index f3d0e2d9974..bc4f7a3a5c1 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -534,15 +534,31 @@ Dump::visit (ForLoopExpr &expr) void Dump::visit (IfExpr &expr) -{} +{ + stream << "if "; + expr.vis_if_condition (*this); + expr.vis_if_block (*this); +} void Dump::visit (IfExprConseqElse &expr) -{} +{ + stream << "if "; + expr.vis_if_condition (*this); + expr.vis_if_block (*this); + stream << indentation << "else "; + expr.vis_else_block (*this); +} void Dump::visit (IfExprConseqIf &expr) -{} +{ + stream << "if "; + expr.vis_if_condition (*this); + expr.vis_if_block (*this); + stream << indentation << "else if "; + expr.vis_conseq_if_expr (*this); +} void Dump::visit (IfExprConseqIfLet &expr)