Message ID | 20230221120230.596966-85-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 s9csp1844282wrn; Tue, 21 Feb 2023 04:54:19 -0800 (PST) X-Google-Smtp-Source: AK7set9gJmSghi+pghf1wsBE7a6oGpHwa/TyI7NmOQUdox8LgLj476v9xG5fnvDbJ/oGQOJvbaCw X-Received: by 2002:a17:906:e13:b0:8b1:2614:fbf2 with SMTP id l19-20020a1709060e1300b008b12614fbf2mr11017916eji.70.1676984059408; Tue, 21 Feb 2023 04:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676984059; cv=none; d=google.com; s=arc-20160816; b=tcRlSLO91/VgHeUieryeB/iA1QpqeS+/PMYkX58pyKDSAI3aDay8EKzSO14mzsrHmM DwaFphjN2ZqDX+T6GAmyIvxtUaMPv7R/UALyooEjqZm+rSaFn70VESUcRHd0k3XBIFWT qtsGVq0IalRrt5/826GhxZVUdiVxH7NpVNKHY4Q/52Ja5Ek8zK+q8cZL9yOcuS+ECSoW IUKvCeYjzxSJxngyiCN9cEzHxcUmKxZuQwS5YWrKndi37cogB7HpNgDbI0JKdJ4XEfBB 0paOJ2NFOuiwlYTwRrpijhkx5HjybAdi93nH4Z0uLtu/5sk7siQvCUEOParl/n0GO2OZ rVNA== 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=FbkBr8HUI03AQU6DkJSzu7FnPK+Fx3xW1Ff+amG6vdI=; b=N1fT30tSRZwmTSFtz7fKdgnIV19FkrcPwoDMVeCbgaCMW2SHRAY/3Vxj+Esdhgy/Zv gH2xo/wo8DQ6syuexcquW+gDtDlNqFlhorGuKKVNNxZ3XmCayBH841I3bL5vBw8YggLX xlJB+NSrtN8WeIYluw3HLGz9oHu/DqLUQ3bAimscS7sbgiGKVmmwEgvD6vejMzqN+MNq I58akBhzcncVh7OAjIb1CIbZzZDtTH0v6p78XXNSEDtuH57jH0CXvW8ieA84GfZd0QRx 9EXcnO7qlh0pzptnsnRZJOhk+/grBVzz9I1GWgehua8r/mGMtWNiindH7uzTgc6PR3LF OUOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ZfDVzQTX; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v18-20020aa7cd52000000b004acdd3b83d2si18312006edw.14.2023.02.21.04.54.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:54:19 -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=ZfDVzQTX; 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 5AD8C395BC7D for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:18:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id BEED13851405 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:04:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BEED13851405 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-x430.google.com with SMTP id t13so4091190wrv.13 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:04:31 -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=FbkBr8HUI03AQU6DkJSzu7FnPK+Fx3xW1Ff+amG6vdI=; b=ZfDVzQTXezWAVpzFIA2Jpcm/I5uk1D/xD2cCPAAsF86SaYy2gb3pVJGCM7fJOsfKRx qKyeRghPyFcMI/EP0jTOQwzqdyhi+JMp1qANrF8hZgP8YiT+/Rpwsntp+F4ncJbKMPek d2wJLs68okXXkRwhpRxt6EksWMekR+++oOXWyfHd3jj6XKUi93i8SN9ClfS6ShLQN+0L ssmlVCDQ1vOke1FhTyFRC4pT7eIOhUXDeCbvhXDF3QoDfZU0/mX4Np78PvbpQmPEXKZO w6KSPvccUF9V8ITVBI1LzWNYFpoXjeIa2JluDQFH9scZ9P61v83xA8QwxxgrUC0KrXhI /Z3A== 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=FbkBr8HUI03AQU6DkJSzu7FnPK+Fx3xW1Ff+amG6vdI=; b=a3EBoi911mwWl5CcTgtLyL80582/frvigXKTAeFuyR0xN8G1q8/G/zDO+drBRFPivm 7jFLVeeWGQ4miOLlOR2IoDmusER6MbDJmnzySnlXiUyt0GqiPhd5DSVs1oOiU3sICQMv KRTedQTyDbVPm/KsG0SnlQkmqNlu+UiKBtMOpRDOCff40P8163hMua74yWkptryXaDlY pUBQjmVclfhu6zkOnXVRJFlprgQlHyjLG1pKfII69cInpN4+OItWCQM1+KmDUUubKx3Y Gpn4UFpCZcowgTg4tf5YlVOnTCun7xspdJeZ5DfmMDTJX1p9cMdaWyey4eI1vYfbd/hM 3bXg== X-Gm-Message-State: AO0yUKU+/xMPESFzQNbS7aCPWxv9N3RfGHR9eUK0pA20jJ+RjQb+oR1x XgjSkLVPUKUucLDwJG/lIlsI0YwbQEbVj2Ymbg== X-Received: by 2002:a5d:6acd:0:b0:2c5:7c55:501b with SMTP id u13-20020a5d6acd000000b002c57c55501bmr3698170wrw.26.1676981071130; 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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:04:30 -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 084/103] gccrs: ast: Dump parenthesised type Date: Tue, 21 Feb 2023 13:02:14 +0100 Message-Id: <20230221120230.596966-85-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?1758445237505201274?= X-GMAIL-MSGID: =?utf-8?q?1758445237505201274?= |
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 0ae57fdb744..8e06bf38a6a 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1635,8 +1635,15 @@ Dump::visit (TraitObjectType &type) } void -Dump::visit (ParenthesisedType &) -{} +Dump::visit (ParenthesisedType &type) +{ + // Syntax: + // ( Type ) + + stream << "("; + visit (type.get_type_in_parens ()); + stream << ")"; +} void Dump::visit (ImplTraitTypeOneBound &type)