Message ID | 20230221120230.596966-76-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 s9csp1841515wrn; Tue, 21 Feb 2023 04:47:58 -0800 (PST) X-Google-Smtp-Source: AK7set/cFtecDihj7+tmtd+VFnhPN3AeqP6srDEnJfTDN4W7wge+7xEjQAfSFoQ6GAMnHZq5VnU0 X-Received: by 2002:aa7:d615:0:b0:4af:59c0:d303 with SMTP id c21-20020aa7d615000000b004af59c0d303mr363312edr.26.1676983677915; Tue, 21 Feb 2023 04:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676983677; cv=none; d=google.com; s=arc-20160816; b=vfVEKTQTpJUDMHzTQ/BTK4VK4HAl8l4DVMTdlgfOY4Hcf7N130IPPlxE2r0R3bYwfG sANJE/qLHw7sOFEF99IVAbq//3VB8ZUfjyr7oEvYtq0G7mk51TAyG3QF0uAbfblY+wQA dqwS7yRGX5Tg1Rki0oXq9gtGoIHbm1VmQJckQxB+uGpXId9NTUBuPKy0JD4vWnHVCSe3 7lBIbb2CXpgCIfNhwylRRfd+7DrkuDuUdH0Wt2w8wWvPxQZkKCI5Ah1UgKUlZqI2wmzN 9qbCbuzBdoQ0RtRCY08M1Wh7E6oR2hOuGb8ArE6PiZ3copC7MiDuQWqn1awcxYBOwCY6 ywVA== 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=qPwKG1dft3w8VI1Iipv7tGcsWBo3Z5xgOHXhl2kP86Y=; b=X6wweef1ENQkssOvppoWvwzl+0ofJe5RSppZ2kis3mWcaRhJXH2jmgZwZRH67Igxsz IDMrtCmSWCWjMLf+ddRz1pLWIlz2r81v3XXLncWQaY1n1XRToWy7qM6tchpFhhbGZldI c202t0Adtl4Ji2PpWsK17ihIquV0L0gD8Sy6bj9rL+ZrE6AB/H7Vrxl0Mf29OjMXEYWI tCZK7I1UHvWGxiktGNfREOLkbSkR/ynBAilY2T4QHgJutt9TZMVRsPoVxE62cEUe6XzU NqVn/a7wgZFrq00dxDxP3G8EATvRpUT6vMP7omCkQwq6Lx3PXY3qKVhtxje/ReKtmRGU icaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=LnYazIRV; 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 m7-20020aa7d347000000b004aac89c74a9si4173024edr.630.2023.02.21.04.47.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:47: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=LnYazIRV; 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 3DC7D392CBE4 for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:15:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 0C24B384FB41 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:04:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0C24B384FB41 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-x42f.google.com with SMTP id l1so3887462wry.10 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:04:26 -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=qPwKG1dft3w8VI1Iipv7tGcsWBo3Z5xgOHXhl2kP86Y=; b=LnYazIRVrhjREPhCy5UysqGYNTRyBFiF1xvv+bY4PJHfxPekcZiWEyPab0GdaEndOY qw226I6l5LUuIZimXkPDDqzcta23KXumZOpv8pjmESMIJMsatIDZhgE8BnzApABf+ABK f5/JEHYe3Hyx4gBh3LoZ+Rhk/MNrvQdcKeoR38Mj+q0GcMQsFBglDaWqd/KX2rCdizCV O0AW1xh2vTjievOjtEZg4r17Olz9HcLprV3+nKS+8Xo+rjH6urqIw0tDT+99mMJLRNix 8rPcGNs225ExN3qmJmAW/52EmAr2YSThPIPSRIngj6GnCTBTtxScHDIFo2uC054Wo9Jo DrMg== 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=qPwKG1dft3w8VI1Iipv7tGcsWBo3Z5xgOHXhl2kP86Y=; b=M+9IRXcKoomVK73UVc7Qte2INobxp9qKC6Swc9eX1TlRh13J/02NSGlHkSESRLSkvF OOFelrcNC89TSLQ3j2sh7BXgQ8ajCRXyB/FyU5ohKV0/OVGOAoh7P2s4EWw8bxzL5WCT /+8u1QKlEbmdXq9uFMTNh9I0HNHzdh5fDzFfK5Q9t54o5lB3ZDNyoB2K4cDrR07zQnBe YWwkclD2CsDKJPp+PLPUIUNgPkodjedgj3FyIsTkyK7U3nXyi8r9QVShE/6XLZJPIcnJ 7IpE8OGmzfcr+hVqohNjqmjXP8Vwu8gzR3t+nUo0rTPLCqeJjQRsI64i4dPm79ULe/bs A/pw== X-Gm-Message-State: AO0yUKXOLyQfVkQYPREVPdWtAywHhrFeyglPIa9BOI5NreMqfTrm2ZhZ Ac2KB5ph89UJ5pDkQ0hi0jLw/Epe1VMoCw+fQQ== X-Received: by 2002:a5d:58ce:0:b0:2c5:56f7:51eb with SMTP id o14-20020a5d58ce000000b002c556f751ebmr3545722wrf.63.1676981065375; Tue, 21 Feb 2023 04:04:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:24 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Jakub Dupak <dev@jakubdupak.com> Subject: [committed 075/103] gccrs: ast: Dump array type Date: Tue, 21 Feb 2023 13:02:05 +0100 Message-Id: <20230221120230.596966-76-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.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=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 <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?1758444836799272853?= X-GMAIL-MSGID: =?utf-8?q?1758444836799272853?= |
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, 12:02 p.m. UTC
From: Jakub Dupak <dev@jakubdupak.com> gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add missing array visitor Signed-off-by: Jakub Dupak <dev@jakubdupak.com> --- gcc/rust/ast/rust-ast-dump.cc | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index b017c6ea592..9f73d0565ac 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1600,7 +1600,14 @@ Dump::visit (ReferenceType &type) void Dump::visit (ArrayType &type) { + // Syntax: + // [ Type ; Expression ] + + stream << '['; visit (type.get_elem_type ()); + stream << "; "; + visit(type.get_size_expr()); + stream << ']'; } void