Message ID | 20230221120230.596966-86-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 s9csp1842209wrn; Tue, 21 Feb 2023 04:49:36 -0800 (PST) X-Google-Smtp-Source: AK7set+A5BtPalEKUmaS+4Ty94bo/jU2UOuN0yiMau97K+sN0bK0J+80MSXJCXiGRFAM/qukG5Iw X-Received: by 2002:aa7:d6c1:0:b0:4ac:b2c8:aeac with SMTP id x1-20020aa7d6c1000000b004acb2c8aeacmr4881219edr.40.1676983776521; Tue, 21 Feb 2023 04:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676983776; cv=none; d=google.com; s=arc-20160816; b=TGEjUJHy/Q+RQGoo01ee6hZKc4/5Z1NJgH58Ujftg1xWsRyLWxNhxuqtA99Cp5nexl 76iEdd4hzZG11Fvugk+V/lauCnDgoJe6N03w9ywJAOVUdDwkR11gQ+ctrtgshgLj4krX h+eX0gG+8f3Hl+TjOGS56kImCMYcwWAT7IjyoHD4CQcMdUpC7euQvHddDCDZNtUd44Z9 SrpFQ50d25IZYoVAEj/avamndpf74V4KedP53K2VPnFVu5wbiqT3X8tz1L5AQgYFpuqg zodW0ZwFmg6GQjic120T4tIYKk7kacba87heCPTKgKFnS3p/1Vrd1Yr8KyGU1Ixm/qzB mDAw== 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=7n4qdLuOaMxwsGF1Vz5HNRRVSSn5HYSuES4ZbSs1CNI=; b=obfiizdZBsvYRJiZwDDMOsmI0iddKWzrFKDQ5sPd51mHrn4M4N9d9UdDi1rt81EGfV o88nmGVDUi7p4x7z3ZLF2h5fi4/ky7uHnmQ8t5u4hB9H40+coWZ+DL9leHgDJfdHGPRw 8vTDSar4zzcDNL2GvaTyYAcpQAZ0oZYcRBbQefPVSrR53n0RL3rWoWwVVxJ9bw3zJ80J trlKqDHF6QT8+yT5XsIHBrs79BycikJZPGx54Nnf/apGnc96iZ4Gkd6+vjluhkbMCVnX LMMZ5zq51Ard+md5YUAXwsSUmPAaZE/vHQ+seef+75YybxbWeSqfQKVX9+/GCmx5QM+G oRGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b="PT+EY/Pi"; 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 x7-20020aa7d387000000b004ab4bb74439si1288690edq.411.2023.02.21.04.49.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:49:36 -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="PT+EY/Pi"; 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 CE8BC396F9CC for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:16:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 664BC3884526 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:04:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 664BC3884526 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-x436.google.com with SMTP id j2so3984420wrh.9 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:04:32 -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=7n4qdLuOaMxwsGF1Vz5HNRRVSSn5HYSuES4ZbSs1CNI=; b=PT+EY/PiV/WpxR5+awUH2Dl4nh5K9FJ/cmYDstA6iLs7wDKxC8TNKcn58aGfxA7H5b K3HscjvRfNUoRHdSZclqjlvaB+SKdYi49aG9NWcub01QLwXhFPl5uGKdS1osuI8ZPPN5 7RXm/2kZ2WX/x+VlNST+4EZgJ8NRbH4RodiaNDaE8pZvQdEycceDIeyLeM+f4dtToKGC BeMQiJSUgsfVkFE8i+pX1BFjLqnBJ5JllUhJsfP47EJwbTnjMWiDrOsdt3BcuwuXEBOL CZwEHxrn6NbwBItwdDDnt+JrVTAIkvVjjvVNHZDOEeZK5E4b9U9jytjLDQQZ2cebpHlo +xAA== 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=7n4qdLuOaMxwsGF1Vz5HNRRVSSn5HYSuES4ZbSs1CNI=; b=51bdsuO2sv1yO0HWSM0TY2jJyRlwYGiixPoPCQ/7QzYijlTQ1MS4Jx3ReUkNVhYn1E gqL8uImXmxWxFyetUR7FARv1d/Kwm+gMqpBSTa+cANjXygFBShMHnb4naByslB73C9vk pZgoiu/YPnqujrwG7bT26sq3WRWAYgKNnjDaJQnBYsxNUhGSYiLAmrPQbyHMzxeIjQYL MPeRTkr/Kdv+PSpkyE/pbV8COHF+96+fFCmyHjExxyS66//iAEM0hhJwXSlj7xgwct8y 0u1eEEJ/0cVgeN2/gLBdq6mCJEvN8QtbEJrmgFcKueiJrMJt4nuh+jC5wNSHxyVBa/0D Jzig== X-Gm-Message-State: AO0yUKUMUlRNCYjIgsimsRrNSWZvY85RbJCYlncGlpO/HdCntABX3HD4 y8p2udMWTqZuTMJADVArs1ZbSwc6EVUFDlcMig== X-Received: by 2002:a5d:678a:0:b0:2c5:594d:d9f7 with SMTP id v10-20020a5d678a000000b002c5594dd9f7mr4076921wru.63.1676981071770; Tue, 21 Feb 2023 04:04:31 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:31 -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 085/103] gccrs: ast: Dump trait object type one bound Date: Tue, 21 Feb 2023 13:02:15 +0100 Message-Id: <20230221120230.596966-86-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.3 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?1758444940474010275?= X-GMAIL-MSGID: =?utf-8?q?1758444940474010275?= |
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 visitor. Signed-off-by: Jakub Dupak <dev@jakubdupak.com> --- gcc/rust/ast/rust-ast-dump.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 8e06bf38a6a..7d62571b778 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1656,8 +1656,15 @@ Dump::visit (ImplTraitTypeOneBound &type) } void -Dump::visit (TraitObjectTypeOneBound &) -{} +Dump::visit (TraitObjectTypeOneBound &type) +{ + // Syntax: + // dyn? TraitBound + + if (type.is_dyn ()) + stream << "dyn "; + visit(type.get_trait_bound()); +} void Dump::visit (TupleType &type)