Message ID | 20230221120230.596966-69-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 s9csp1841250wrn; Tue, 21 Feb 2023 04:47:22 -0800 (PST) X-Google-Smtp-Source: AK7set+tAQ8oNbmSIrWfTyPvviFzAp4tviZ8tFYOBA/egy5Elny5GThenJb/3Adl0cup5YwBsCTG X-Received: by 2002:a17:907:2da2:b0:889:33ca:70c6 with SMTP id gt34-20020a1709072da200b0088933ca70c6mr19472434ejc.2.1676983642732; Tue, 21 Feb 2023 04:47:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676983642; cv=none; d=google.com; s=arc-20160816; b=G15zc3xOdvtpEj/dB6ILtA9urZk+OE9UcOwKkIp+WrTNnwpNrlCfisAICRkvme4+Ta /j5Kan58BWFy/gJve4pZ364UiiXt0veQqKJCahpLBNrj4lufOB4aGUlfFM3Uy8rKFOCq Az+x0BIHh8RROSEnO/WjYEHZaVGQF6d9J6JlzirO0U1HR3omnmZu57DqmO5pNvq3nye/ 3VpuCMY/D1yCzy4kS8yoZ2VPNU580pGGUguHjQlKfO/yUfS4sut3GH0BgspidyiQGs9F XZEfuAvsFAwKHvG/F+FHsXUdHNKeuWf2Ao7zpJShdRSMJgZR8deXPEVPzpvzJp+qpP/E lELw== 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=JPkBa+BNYndGOynndtqfRq+B1aNIjnVFvgpJGhbl9nI=; b=bEaOk2jd1GNoiv0pQciYd1rQ9O3sSDkZgPb71Z7G+rGXA3nRla9y/5DFaL2dnTjryk q4dUy6hjt0xHcfXh7s5RKTo8CpM/15Z/y49mEFByfqRrIXG3/GZVqvwsfHLnCwIIfeCp 6+qEVsaBZoXIRbO/dT3dY6Jn0CQ8bQOtwGnKW6VW7vdq2/9o81yiz3hsPqlbJCq+YHFE ee6b0DMnzzwAquBKpaxnsI7rtmH91IP7rL4WeVJwoOOEN2SeFWOeACRIkvpKniHGyKaJ ESvWGoQ3jP2SRlbKgaZ+Gq4BWLq+eZ+TZ9UkyMPORasyFlQjq0ci72OMFy0adej1MHgj ph/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Xvz0eroK; 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 ge16-20020a170907909000b008caedbfc3b0si9271164ejb.755.2023.02.21.04.47.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:47:22 -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=Xvz0eroK; 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 B61B43853379 for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:15:42 +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 340C4384F4AE for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:04:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 340C4384F4AE 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 o4so4165990wrs.4 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:04:20 -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=JPkBa+BNYndGOynndtqfRq+B1aNIjnVFvgpJGhbl9nI=; b=Xvz0eroKyhDk+kmqYiHbPGhgCLlgbQESfIXGWE1ZTsyeYJ6Yp0P0CRgQ4BQPqdGNaR /V/TQVeYRNQFLOOKF+PUV1O5JO1N3pEmbRf9igotl7+msNI2d8GUZA41FwmFGjWtQcsy CWAwc2WWDQX/4DMaepTi5YdeXe/cohke1lPqbIRuoB5+3dLvZMmcYH3ZYtKwvxIOhSwU XB902a4P9v1VCO1S6Y434y+Vz/Z7BKv4z9WuSF6mDMphxH7xq2jn4rmSXuhbYg7/YoAW g0e88NK75xmdomdVqG8lm0x5lY4kdb5V22LTl3hvWuhUVoFwyZ8p96rgoHR2m4cKHqzO dIPg== 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=JPkBa+BNYndGOynndtqfRq+B1aNIjnVFvgpJGhbl9nI=; b=IGvm+IjhA/n6njc+FGl7lj6/HprZRQxCp9R7BVFordtJz9pRR9JjJNUIArWE6hKx5p hvckrQPOHdUQjJCnxpmmjyjulNs9pGrD6hSw6XcAvxh3HGQAvQYWFKjqExJ87n35UvXO XU4H0xo9Ivub+RKROPBHhwpWK/33q9Jsk/R6igBEewyj6hH0i7EMIkWHvc93PrXnuTiD t783efRfjhTPeI1NeqBd1qpoQ32k/MU7sx66qXICRbCgg8cy1XXfF1lBgtIBA0r/bdsF 1k2k5/2ta7kZKs20zI9k0wetoWRgsvzheEQ9LIbaHzcayno+hzmCCu9uomJXA7Rbrhi/ hLtg== X-Gm-Message-State: AO0yUKVgv205HWHMBXbru9ZliQQgjsSdEucsQjfePPv3APliQAZs+8Si LlPlNrWB2qTH0kjPtHDEuQ5m+zd10CDMmePdYw== X-Received: by 2002:a5d:4ccf:0:b0:2c6:5972:cd13 with SMTP id c15-20020a5d4ccf000000b002c65972cd13mr4762336wrt.26.1676981059438; Tue, 21 Feb 2023 04:04:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:18 -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 068/103] gccrs: ast: Dump unit struct Date: Tue, 21 Feb 2023 13:01:58 +0100 Message-Id: <20230221120230.596966-69-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.8 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?1758444800482243089?= X-GMAIL-MSGID: =?utf-8?q?1758444800482243089?= |
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:01 p.m. UTC
From: Jakub Dupak <dev@jakubdupak.com> gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add handling for unit structures. Signed-off-by: Jakub Dupak <dev@jakubdupak.com> --- gcc/rust/ast/rust-ast-dump.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 191e328b134..df42481c248 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -945,7 +945,10 @@ Dump::visit (StructStruct &struct_item) // FIXME: where-clause - visit_items_as_block (struct_item.get_fields (), ","); + if (struct_item.is_unit_struct ()) + stream << ";\n"; + else + visit_items_as_block (struct_item.get_fields (), ","); } void