Message ID | 20230221120230.596966-79-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 s9csp1847260wrn; Tue, 21 Feb 2023 05:00:56 -0800 (PST) X-Google-Smtp-Source: AK7set9X7wKR1BJB5piu+mbPAailH8NONzBEJbacM5DmuX4CsQSs9G5SA6lWfAEi5IzAStr3KH+I X-Received: by 2002:a17:906:d9cc:b0:8b1:304e:58a3 with SMTP id qk12-20020a170906d9cc00b008b1304e58a3mr11868543ejb.52.1676984456242; Tue, 21 Feb 2023 05:00:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676984456; cv=none; d=google.com; s=arc-20160816; b=Df9Sg0jKz3ewM6lJl0AgAppj85n1Xmz/gSR/psgWEtcrNEo7VVKU3d/1zynn5uZUgA 1peDM+VfuucKrU3P4T5QBCfItSprcKEtBInBOeVdmx7odVUkYLGyJ2KFQ9/InCTh1kRu nl48TSquTqkQp4zJeStojIwskJ6ziNWBU4OFT9F6GQNDAwL2InQLOSeouRCgs+lkrYv/ XX2MLZ8SLeNfBt9ZhUctKPe/QTdTLwaA8dW1rSw5jYiLAAlEcupAaesPAJVTxRabjwPR CtkgNyES1PYf47/oBvdnp61n7evTUXPn8mfXuVMe9uzCqOh0K3iWXmzisuFAT2af3i+b vcSw== 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=WuI/LEae02cBMx2WrS3g0oXFB34DinFX7QBsPq6e16g=; b=vVRFZtQ5omxw3+wVoUSZ9YNlH6ZqPcBo4hU+4IpIVEMl1qu1UUiAEQMc2jaVMcGnei tMUBF2ciSsJmMpqRhLhmg+wF6/UCwM1//9QTJ5naiZVXjrqKjHZvXvHiatNx3gZfYWnY aaMkTPjdHjVQgKx4HHNRvpvnLy+GZNL2A6jSolrFV7+JIaZvTNsXuI3nEO6HDfI67rXr DVlTpklZL49E+XYK78NtScTCCPeKOhZW6JLa9kbE6cC0hTL8WW3v3TW33vvqZUnidml7 pzPpdHxgaYk6XwvMUIsP0vfEKlc+EE4X9a7k18nLGRqM7hT4/e9hBeAf89nIlYRZxtBd MtkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=PtNnwgKZ; 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 19-20020a17090602d300b008b17ac3edb4si17894507ejk.894.2023.02.21.05.00.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 05:00:56 -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=PtNnwgKZ; 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 EAEF23892B88 for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:21:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 042DB3882F35 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:04:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 042DB3882F35 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-x42a.google.com with SMTP id t15so4269396wrz.7 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:04:27 -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=WuI/LEae02cBMx2WrS3g0oXFB34DinFX7QBsPq6e16g=; b=PtNnwgKZr2zmjPWDk/5e0VN9+eWvmUYqApCGpWPVNOwiuLGutKNahTXEoTghCqWC2U NIRS+rAYQ4AFs4MBQEtJD/VUPbxBHWV89yBLOrHEMzZyyUlt4wJ+YxkPxvwRKsTjGHgh 1VwfW0QRwFhFagQgm037HVnNs9ZqpVTvdxto3zRzNOJZz4mTcAfavalOGq8lHh9kp2CV BbdBrILaImAoGTr0Qej052scE58ortdiIshIY3wrI75Gh7I8HhIGzXSXmxPZCM25etzw gA0nZEWON4lrYiLyHN+d8IFuiEILNa0zG/kPw0snI7KPwX8YobIw/2xYIdY4kxrfuVzX bERg== 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=WuI/LEae02cBMx2WrS3g0oXFB34DinFX7QBsPq6e16g=; b=elJT2bvl7Bi76oETEMjjiGZZMvkbBQnf4onxkySOc9TFMyZyCY/NtKULUKr9pAsTP/ YBs2g08cumvlU6s6fWCo/NPXVdTP6qxgT9nFhQOu53uto5lm7+ytMyITSFMzQvmAtjjy uXF0zkLM1sfC4RhsqUmhhtpGTCAgiEm3EEnzEKITfswVj9CfQdQkeGsF0q6iaWAI4sNi Xm4ZzWUPdtOOZpX335W9FWfUK51vX1qoyhGDo455+//y8jEBRRsSVUS+73657GiezUr+ nVVdEYT+yrXmMU9Lq08lNYwYxbNRxTqgdBSqAdazDCsftVKxDnmRCbN2W3nM+l+A8sfV 9SLg== X-Gm-Message-State: AO0yUKWbNOOuUh3GQAt0JaNNvRxveVqtekkQz2mGVGZiL/c7qTFNqut1 XMRkSLQADlqp/MDcxsgj3HWMxWYdfoL4S3Ts4A== X-Received: by 2002:a5d:474a:0:b0:2c5:52b7:8436 with SMTP id o10-20020a5d474a000000b002c552b78436mr4488467wrs.21.1676981067350; Tue, 21 Feb 2023 04:04:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:26 -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 078/103] gccrs: ast: Dump tuple type Date: Tue, 21 Feb 2023 13:02:08 +0100 Message-Id: <20230221120230.596966-79-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=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?1758445653421983042?= X-GMAIL-MSGID: =?utf-8?q?1758445653421983042?= |
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 tuple type visitor. Signed-off-by: Jakub Dupak <dev@jakubdupak.com> --- gcc/rust/ast/rust-ast-dump.cc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 3af4895269c..9393f957aa2 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1580,16 +1580,24 @@ Dump::visit (TraitObjectTypeOneBound &) {} void -Dump::visit (TupleType &) -{} +Dump::visit (TupleType &type) +{ + // Syntax: + // ( ) + // | ( ( Type , )+ Type? ) + + stream << '('; + visit_items_joined_by_separator (type.get_elems (), ", "); + stream << ')'; +} void Dump::visit (NeverType &) { - // Syntax: - // ! + // Syntax: + // ! - stream << '!'; + stream << '!'; } void